home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
iaktimes.zip
/
iaktimes.txt
< prev
Wrap
Text File
|
1995-05-28
|
2KB
|
46 lines
IAKTIMES.CMD
This OS/2 command file displays and totals the connection times collected
by SLIPPM.EXE ("IBM Dial-up for TCP/IP" or "Dial Other Internet Providers").
It is *not* for Advantis users ("IBM Internet Dialer" or DIALER.EXE).
The connection times are extracted from the TCPOS2.INI file stored in the
path identified by the ETC environment variable. SLIPPM stores the time
under a separate INI 'application' for each 'connection name' using the
key TOTAL_CONNECT. IAKTIMES.CMD will find all connection names with non-zero
total connect times, display them and total them in 'hh:mm:ss' format and
'nn days, hh:mm:ss' format.
I wrote this .cmd file because my provider gives me 100 hours and I wanted to
see the connection time in terms of hours, not days. Also, I use two different
'connections' as defined by SLIPPM to access the same provider -- depending on
the modem I can get at the other end -- so I needed to be able to total the
connection times.
Syntax:
IAKTIMES
Sample Output:
ScruzV34 81905 22:45:05 ( 22:45:05)
ScruzVFC 127810 35:30:10 ( 1 day, 11:30:10)
----------------------------------------------------
total 209715 58:15:15 ( 2 days, 10:15:15)
The first number is the number of seconds connected which is how SLIPPM stores
them in TCPOS2.INI. This number is converted to <hours>:<minutes>:<seconds>
format (and nn day(s), hh:mm:ss).
The connection time is reset via the SLIPPM menu pull-down 'Reset Total Connect Time'.
Hope you find it useful. Feel free to distribute as you see fit. Please include this
text file and drop me a 'post-card' if you find the program useful.
Dan Douglas May 28, 1995
dandoug@scruznet.com
note for Advantis users: inetlog and inettime are two packages I found on Hobbes to do
similar things based on CONNECT.LOG. This package is intended
for users of 'other' internet providers via SLIPPM.