Hi,
Thanks to all of you for your suggestions, however the system I am running on is an embedded linux device, and does not & will not have links. It does have wget though.
Regards,
Andrew
On 9 Sep 2010, at 17:01, Eric Pailleau wrote:
Le 09/09/2010 17:57, Eric Pailleau a écrit :
This one is more beautified ...
--8<---------------
echo -e -n "$1\t" ; (links -dump http://127.0.0.1:2812/$1 | grep Status
| cut -d '|' -f 3 ) && exit 0 || exit 1
--8<---------------
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
Sorry, read :
echo -e -n "$1\t" ; (links -dump http://127.0.0.1:2812/$1 | grep Status | cut -d '|' -f 3 | grep running ) && exit 0 || exit 1