Fwd: Software to monitor domains

Derek Broughton news at pointerstop.ca
Mon Nov 17 02:14:20 UTC 2008


Ray Parrish wrote:

> It's me again... I've been looking at the script again, and realized
> that it's writing to a log file on error, but it doesn't have a
> mechanism to pop up an alert on the desktop that it's down. Is it
> possible to add an alert of some sort so I don't have to keep looking
> in the log file?

Look, the top posting REALLY doesn't work!

>> while :
>> do
>>     rm -rf *
>>     wget -o log "$1" || xmessage "$1 is down"
>>     sleep 60
>> done

So skip the loop, and put it in cron, to run however often you want, and 
cron takes care of emailing the output
-- 
derek





More information about the ubuntu-users mailing list