> On Thu, 15 Aug 2002, Randy Kramer wrote:
>> 1.  Anybody know a good way to detect that a network link is active?  

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 

 -Mad 

 --
Madness is soil in which creativity grows 

              - Chris Bielek 

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

Reply via email to