|
#!/bin/bash
wget -t 1 WWW
if [ -f index.html ]
then
rm -rvf index.html
else
echo "does not work website in old-server" | mailx -s "Server named old-server does not work" user@host
fi
Last edited by big_nobody; 09-01-2008 at 06:06 PM..
Reason: hide website and email (security)
|