On Fri, 2005-10-14 at 12:22 +0530, dipankar das wrote:

> 
> What is the way for Bash to know if the the network is on or not? I want my 
Don't know if this will help, but try -
**********************************
[EMAIL PROTECTED]:~$ sudo pon dsl-provider
Plugin rp-pppoe.so loaded.
[EMAIL PROTECTED]:~$ plog
Oct 17 23:05:33 localhost pppd[10408]: Couldn't increase MRU to 1500
Oct 17 23:05:33 localhost pppd[10408]: Couldn't increase MTU to 1500
Oct 17 23:05:33 localhost pppd[10408]: Couldn't increase MRU to 1500
Oct 17 23:05:33 localhost pppd[10408]: CHAP authentication succeeded:
Authentication success,Welcome!
Oct 17 23:05:33 localhost pppd[10408]: peer from calling number
00:E0:FC:47:53:45 authorized
Oct 17 23:05:33 localhost pppd[10408]: Cannot determine ethernet address
for proxy ARP
Oct 17 23:05:33 localhost pppd[10408]: local  IP address 59.93.65.213
Oct 17 23:05:33 localhost pppd[10408]: remote IP address 59.93.64.1
Oct 17 23:05:33 localhost pppd[10408]: primary   DNS address
218.248.255.145
Oct 17 23:05:33 localhost pppd[10408]: secondary DNS address 61.1.96.71
[EMAIL PROTECTED]:~$ sudo poff
[EMAIL PROTECTED]:~$ plog
Oct 17 23:05:56 localhost pppd[10408]: Terminating on signal 15
Oct 17 23:05:56 localhost pppd[10408]: Connect time 0.4 minutes.
Oct 17 23:05:56 localhost pppd[10408]: Sent 360 bytes, received 558
bytes.
Oct 17 23:05:56 localhost pppd[10408]: Couldn't increase MTU to 1500
Oct 17 23:05:56 localhost pppd[10408]: Couldn't increase MRU to 1500
Oct 17 23:05:56 localhost pppd[10408]: Connection terminated.
Oct 17 23:05:56 localhost pppd[10408]: Exit.
******************************************
Well, if your link is down, plog returns an "Exit"
-- 
--K.Ghosh
093 910 58 749
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Debian GNU/Linux user No.301508


--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to