Archive for Scripting

Using curl to see if content has changed

cURL is a brilliant tool. Im using it in a script on a cron job to mail me if a certain page has changed. I get a “name lookup timed out”, though, but it seems to do the job regardless.

Now, how to work out how to set the job to run php every 30 mins round the clock.

or whay-hey! every 5 mins.

0,5,10,15,20,25,30,35,40,45,50,55 * * * * php [directory]/script.php

I can always tone it down later.

Comments