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 revision
Previous revision
Last revisionBoth sides next revision
howto:simple_network_monitoring [2008/08/19 16:53] – fix the "|>" problem 88.172.125.130howto:simple_network_monitoring [2010/10/02 17:26] – external edit 127.0.0.1
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}