Network Connectivity

Sean Keating sean at csupport.com
Fri Aug 10 07:28:03 PDT 2012


The following command will return the ip address info if the device
exists and is up. (Your ifconfig command may be in a different
directory.)

/sbin/ifconfig eth0 2>/dev/null|grep "inet addr"

Sean Keating


On Fri, 2012-08-10 at 00:14 -0700, Steve Jardine wrote:
> All,
> 
>    Does anyone have an idea as to how to determine if any device has network connectivity. Where devices are WiFi (wlan0), Ethernet (Eth0), Wireless (usb0-2)? I need to trigger an event if network connectivity exists.
> 
>    Steve
> 
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> http://mailman.celestial.com/mailman/listinfo/linux-users




More information about the Linux-users mailing list