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 -->
  #3 (permalink)  
Old 05-28-2007
Guillermo Lopez Guillermo Lopez is offline
Registered User
  
 

Join Date: May 2007
Posts: 6
One tool that will be useful is wget. This is command line tool that is delivered with almost all Linux distributions and you can also get versions for other systems or you can just try to compile it yourself. Just type wget on your command window and see if the system finds it. Otherwise you should have to install it if you think that will be useful and have to rights to do it.

This is one of the several links where you can find more information:
http://www.die.net/doc/linux/man/man1/wget.1.html

Best regards,
Guillermo

Quote:
Originally Posted by srivsn
Hi Guru's,

I need to check the availability of a web page for every one hour through a script. Following is the requirement.

1. Go to http://vsn.srivsn.com
2. If any error encountered in openeing the home page, it should trigger an email with the appropriate error message.
3. If page opens with out any problem, Login with username vsn nd pwd vsn.
3. If any error encountered in opening particular user account, it should trigger an email with the appropriate error message.
4. After successful login, it has to navigate to a link and that link has to be opened in the same page.
5. If an error comes in opening the page associated with that link, it should trigger an email with the appropriate error message.
6. If everything is successful, an email should be triggered indicating that the site is available.


I need the scheduling options for this to run the script for every one hour. Am new to this and hardly worked on one or two scripts a year back.

Need help.

Thanks in advance,
srivsn.