|
UPDATE: I have now written a wrapper script for this one which adds GUI [graphic user interface] capabilities to the Web Change Monitor. Read about it here - GUI Web Change Monitor script. This bash script [UpdateWebURL.sh] checks a web page to see if it has changed at intervals you set, and when it does change, this script loads it into your default web browser from it's original location on the web. Download command line version of Web Change Monitor You can run multiple instances of this script at the same time to check on more than one web page. Here is the source code for the UpdateWebURL.sh script. To use the script, extract the files from UpdateWebURL.sh.tar.gz into a folder in your user folder structure, then issue the command - /home/username/folder/path/UpdateWebURL.sh http://www.somesite.com/somepage.ext?query 300 Replace the obvious bits in the path to the script with it's actual location on your system. The first argument may consist of any valid web URL. The second argument is the time interval in seconds you want the script to wait between web page checks. If you omit the time interval argument, the script will set it to 300 by default, which is five minutes. Web Change Monitor keeps a log of all checks in a /logs folder under the folder it is ran from, and will create this folder if it does not exist. The logs are rotated daily at midnight, and are named DDMMYYYY.log where DDMMYYYY is replaced by the actual date the log was created. There is a companion script to this one, whose sole function is to delete "go.txt" to stop this script from running. If the "go.txt" file gets deleted during the run of this script, all instances of this script will exit the while loop, and end after the current time interval expires. Here is the source code for StopChecks.sh. This command line version of Web Change Monitor provides the core functionality for doing web page checks to it's companion GUI wrapper script GUIUdateWebURL.sh which is available at GUI Web Change Monitor. GUI Web Change Monitor is much easier to use than this command line version, and has more capabilities, such as viewing the current log, a load recent URLs command, a save list of currently being monitored URLs command, and others. Download command line version of Web Change Monitor Help me keep writing code for others to use. Please consider making a donation of whatever you can afford if you use my scripts, even something as small as one dime would help a lot. Thanks. |