Mad Scientist wrote:
> The following will output a 1 to standard out if <interface> is up. I tested
> with eth0 but I assume it will work with ppp0 as well.
> 
> ifconfig | grep <interface> -A 2 | grep -c UP

Ahh, cool!  And I can adopt that to check the results of a ping (which
is what I really need to check), even though I said "network interface".
;-)

Thanks!

Randy Kramer

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to