Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate hourly checking of a website using a Linux box

Status
Not open for further replies.

hallm

Programmer
Jun 11, 2000
159
US
We have to check a password-protected website several times a day in order to see if we have open service jobs for our techs. Really what we're looking for is something that can email us when a certain text string is present in the source or html code of the webpage.

Are there any pre-existing libraries or scripts that do this already?

Any ideas?

I'm running Red Hat 7.3.
 
There are 2 ways you can do this. You can use libcurl or wget. Either will allow you to fetch the webpage with a user authentication. The you just parse the text and email yourself when you match the desired text.

 
There are hundreds of ways of doing this.
How would you like to do it and how sophisticated
does it have to be?
What tools do you have to work with?
Perl, tcl, gawk 3.1, even the shell with
something like netcat or sock has everything
you need to grab and parse a webpage.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top