The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 09-01-2008
big_nobody big_nobody is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 4
#!/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)