From: Jamie C. <jca...@we...> - 2009-04-15 15:54:37
|
You could add | grep 1000 to the end of the command. This will exit with non-zero (failed) status if the output doesn't contain 1000 - Jamie On Apr 14, 2009, at 11:52 PM, Pat Erler <pe...@gm...> wrote: > ok, to quick. as i get a string back here (and not an exit state) - > how can i utilise the output of the command below in a monitor? > > root@orbit:/# ethtool eth0 | grep Speed | awk '{ print $2 }' > 1000Mb/s > > > On Wed, Apr 15, 2009 at 08:48, Pat Erler <pe...@gm...> wrote: > ah, great, thanks! > > PAT > > > On Wed, Apr 15, 2009 at 08:31, Steve Holdoway > <st...@gr...> wrote: > ethtool eth0 | grep Speed | awk '{ print $2 }' > > > --- > --- > --- > --------------------------------------------------------------------- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list |