LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-22-2005, 04:25 AM   #16
Lim45
Member
 
Registered: Apr 2003
Location: Northern England
Distribution: Debian Wheezy 64-bit
Posts: 128

Rep: Reputation: 15

Possibly the simplest way of all - open a terminal, log in as root, and type

tail -10 /var/log/messages

This will give you the last ten lines of the file (just increase the number if you need to see more), and should look something like this copy & paste from mine:

david@darkstar:~$ su -
Password:
root@darkstar:~# tail -10 /var/log/messages
Jan 22 09:35:13 darkstar pppd[2048]: primary DNS address
Jan 22 09:35:13 darkstar pppd[2048]: secondary DNS address
Jan 22 09:56:55 darkstar -- MARK --
Jan 22 10:15:51 darkstar pppd[2048]: Terminating on signal 15.
Jan 22 10:15:51 darkstar pppd[2048]: Connection terminated.
Jan 22 10:15:51 darkstar pppd[2048]: Connect time 40.7 minutes.
Jan 22 10:15:51 darkstar pppd[2048]: Sent 432975 bytes, received 2312561 bytes.
Jan 22 10:15:51 darkstar pppd[2048]: Connect time 40.7 minutes.
Jan 22 10:15:51 darkstar pppd[2048]: Sent 432975 bytes, received 2312561 bytes.
Jan 22 10:15:51 darkstar pppd[2048]: Exit.
root@darkstar:~#

Something else occurs to me - if you have the "dock into panel on connect" option checked in the kppp setup, you can simply hover your mouse over the applet, and it'll tell you the connection time.

Edit: Obviously you can only use the first method after you've disconnected

Last edited by Lim45; 01-22-2005 at 04:30 AM.
 
Old 01-22-2005, 05:22 AM   #17
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There is the 'time' command which can precede another command.

When the second command finishes the time command prints elapsed time statistics on standard output.

If you wanted to use Genesse's idea, you could assign the connect time and disconnect time values to variables instead of writing to a file.
 
Old 01-22-2005, 09:12 AM   #18
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
->Lim45
Wow! Really, if hover over - it displays connect time, I never tried
->jschiwal
If u have some time, please, write more about what u suggested
______
Thanks to all for help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Oh my. No internet connected? ElvenAssassin Linux - Newbie 8 04-25-2005 01:17 PM
How can I get connected to Internet in... mir_sheely Linux - Hardware 1 06-11-2004 05:16 AM
help getting connected to internet leroy27336 Linux - Networking 2 01-22-2004 03:59 AM
Cannot get connected to the internet ullfrigg Linux - Networking 5 11-22-2003 02:47 PM
internet is connected but cannot browse internet?!?!? myk3 Linux - Newbie 3 11-17-2003 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration