After writing this script , I have to automate the running of this script. This was achieved using crontab . I scheduled it in a way that it gets executed every minute. So when the in formation appears in the web page I get notified automatically.
Note : By changing variables URL,Lookfor and Displaymessage any one can customize it for their own use.
Steps to setting up this in a Linux system
Step1 : Save the script with executable permissions. This can be achieved by the command chmod 777 filename
Step 2 : Type in the command crontab -e .Now a file gets opened up ,to which you need to add the following * * * * * absolute_path_to_the_script
No comments:
Post a Comment