Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
howto:simple_network_monitoring [2008/08/19 16:53] – fix the "|>" problem 88.172.125.130howto:simple_network_monitoring [2009/02/09 23:34] – Change eth0 rederence to $interface variable 90.129.31.205
Line 39: Line 39:
     echo "<img>${MY_icontheme}/network-error.png</img>"     echo "<img>${MY_icontheme}/network-error.png</img>"
 fi fi
-MY_ip=`/sbin/ifconfig eth0|grep inet|awk {'print $2'}|cut -d":" -f2`+MY_ip=`/sbin/ifconfig $interface|grep inet|awk {'print $2'}|cut -d":" -f2`
 echo "<tool> echo "<tool>
     Hostname: ${HOSTNAME}      Hostname: ${HOSTNAME}