Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Connect to the Internet from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Connect to the Internet from the command line
Authored by: floop on Sep 30, '03 01:39:51AM

I too struggled to understand how to initiate a ppp connection from the command line. Actually in my case I have a small C program which uses the modem port to monitor my phone line for a ring. When a ring is detected it connects to the Internet with a system() call using the same command being described. This allows me to access my system remotely via a telephone ring to get it to connect to the Internet.

With that background let me add a few minor additions to this excellent hint. First it is a little more convenient to use

ps axww | grep pppd

That way you only see the items that include "pppd". Second, if you want the modem status in the menu bar to be correct, the serviceid must be correct. This can get out of sync with the command line if you modify your modem/internet settings at a later time. In fact several things can get out of sync so anytime you change your modem/internet settings you may want to update your script.

One final note is that I do not recall needing to invoke CCLEngine as pppd will normally call that as part of its process. Its been some time so I could be mistaken on this.



[ Reply to This | # ]