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
On Thu, 15 Aug 2002 13:50:52 -0700
Mad Scientist [EMAIL PROTECTED] wrote:
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
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