I make script like this to send me email when there's no 200 ...
the truth is it's work fine ..
but when i am using crontab -e and put this line :

0,20,40 * * * * /home/essy/public_html/perl/httpresponse

it's send me hundred and more email to me ... 

here's the script :

#!/bin/bash
perl /home/essy/public_html/perl/http -r www.ojolali.com > hasil1;
grep -i 200 /home/essy/public_html/perl/hasil1 > /usr/backup/error1;
until grep -i 200 /usr/backup/error1; do
echo To: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject
done

Reply via email to