hi,
Quote:
#!/bin/sh
wget website.com -o /tmp/web
value=`cat /tmp/web |grep OK | nl|awk '{print$1}'`
if [ $value -eq '' ]
then
restart service
fi
|
and on cron i launch it each 15 minutes
but I know there are better ways to do that
whats your way?
Thanks