Even easier. Try 

grep "Connect: ppp0" /var/log/messages 

The last line returned will be the start time (according to your system's
clock, at least) for the most recent ppp session.

At 09:30 PM 5/15/99 -0400, Michael B. Trausch wrote:

>Thank you... See, the reason that I want to do this is because my ISP does
>a two hour timeout or a three hour timeout... it depends on the time that
>the Internet connection was made.  If I use a program that I can run and
>determine the time it's been connected, I can tell if the connection was
>made during the hour set for a two or three hour connection, and can
>therefore determine if I have the time to download a file or if I should
>bring the connection down, and then back up.  =)

What a drag. My ISP only times out inactive connections.
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
762 Garland Drive
Palo Alto, CA  94303-3603
650.328.4219 voice                              [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to