$Id: LogTime.readme,v 1.1 1995/09/02 23:13:15 mleining Exp mleining $
/*
* Copyright (c) 1995, Marvin James (Jim) Leininger, Jr
* mleining@metrolink.net
* All Rights Reserved.
*
* this program is a quick hack to time my ppp connections
*
* I'm providing it "as is" because I thought other's might
* find it useful.
*
* To use it:
*
* 0. copy LogTime to someplace in your path, probably
* AmiTCP:bin or c:
*
* 1. when you connect to your on-line service, run LogTime.
* (if you don't want the timer output,
* use "run >nil: <nil: Logtime")
* (a good place to do this is in your startppp
* or startnet script).
*
* 2. when you disconnect from your on-line service,
* run logtime with the -s option.
* (a good place to do this is in your stopppp
* or stopnet script).
*
* 3. once a month (usually on your billing cutoff date), run
* LogTime with the -r option, to reset the timer to zero.
* If you run a cron program, you can add lines to your
* crontab to print your current monthly usage (logtime -p)
* and then reset the counter (logtime -r).
*
* 4. Logtime writes it's time to ENV:LogTimeValue and ENVARC:LogTimeValue,
* so you can access the current time from those files,
* or with the environment functions. I know this is a hack,
* but I didn't want to take the time to figure out the right
* way to do this. It also uses ENV:LogTimeCmd to send itself
* commands.
*
*
* Standard Disclaimer
* -------------------
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
LogTime.gcc is compiled with gcc version 2.5.7
using the amigados script "make.gcc". Of course,
gcc must be properly configured.
LogTime.Aztec is compiled with Manx Aztec C using
the supplied makefile.
Both programs should function identically, but I
included both, in case one requires some libraries
that everyone might not have.
This should be pretty portable between different
C compilers, but I only have gcc and Manx..
Check the header of LogTime.c for additional comments.
I've also added some simple scripts with icons to perform
the LogTime functions from Workbench.
If you like this program and use it, please send me
a postcard or e-mail.
Jim
mleining@metrolink.net
|