LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2004, 09:09 AM   #1
RedRabbit
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
Checking if you are online - please help


Guys, could you please tell me if there is an easy way to check if you are online. I already know about PING, but i want something that i could do without having to ping any host. Can you not just say to your modem ("Are you connected to the internet?").

I am trying to build a bash program to count how long you have been online for.

Any help is appreciated,

Gary.
 
Old 01-20-2004, 11:24 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
When the modem connects to the remote modem it says 'CONNECT'. At disconnect (unintentional) it says 'NO CARRIER'. Note that the modem's status does may not indicate whether it's connected to the internet, only if it's connected to something (like another modem, not necessarily to internet) . If you are connected to the internet, pppd is probably running.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MU Online and other online games webdevel Linux - Games 63 08-11-2007 05:30 AM
How to watch Online TV or listen to Online radiostations? polemon Linux - Newbie 4 10-07-2005 02:49 PM
Server goes online when started and stays online ... joepl Linux - Networking 1 08-18-2005 03:12 PM
kopete online then away the online tnf Mandriva 2 04-10-2004 06:12 PM
Online Banking / Online Shopping in Linux? JROCK1980 Linux - General 14 02-27-2004 03:46 PM


All times are GMT -5. The time now is 08:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration