Re: [SLUG] ppp dialup

2001-01-06 Thread Dave Kempe

If you are using a modem on a tty ls -al /var/lock will tell you when the 
last lock file was created, which is the date and time you probably last 
dialed.

dave

On Sunday 07 January 2001 06:09, Peter Vogel wrote:
 How do I find out how long my ppp connection has been up? (or when was
 the last dialin) without looking backwards through the messages file?

 Thanks

 Peter


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] ppp dialup

2001-01-06 Thread Paul Robinson

I have a script which auto-redials if it can't find a ppp0 connection in 
ifconfig. (checks every 2 mins)

Whenever it dials into my isp I get it to write into a seperate log file 
(ie just echo the date  dial attempt to the file). Then if I want to see 
when I last dialed in I just tail the file. (which happens to say the 17th 
of December atm).

But this just happens to suit my needs. The lock file suggestion would 
probably be best for you (Although this really does provide a nice concise 
list of dial attemps which you can check against your telco's phone bill)

Paul

At 07:15 PM 6/01/01 +1100, Dave Kempe wrote:
If you are using a modem on a tty ls -al /var/lock will tell you when the
last lock file was created, which is the date and time you probably last
dialed.

dave

On Sunday 07 January 2001 06:09, Peter Vogel wrote:
  How do I find out how long my ppp connection has been up? (or when was
  the last dialin) without looking backwards through the messages file?
 
  Thanks
 
  Peter


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



[SLUG] ppp dialup

2001-01-05 Thread Peter Vogel

How do I find out how long my ppp connection has been up? (or when was
the last dialin) without looking backwards through the messages file?

Thanks

Peter


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug