Greslore
May 11th, 2009, 08:28 PM
Need some advice on this one.
I go to a URL via Firefox http://www.example.com/blah.php which runs "blah.php" which performs some db maintenance requiring no input from me. After about 5 minutes it simply returns saying "DONE!" to the web browser.
Now, I want to throw this into a nightly cron job, but I am having a heck of a time coming up with a way of running that blah.php and then capturing that "DONE!" to a txt file from a shell script. I believe I can use wget or curl to do this?
I go to a URL via Firefox http://www.example.com/blah.php which runs "blah.php" which performs some db maintenance requiring no input from me. After about 5 minutes it simply returns saying "DONE!" to the web browser.
Now, I want to throw this into a nightly cron job, but I am having a heck of a time coming up with a way of running that blah.php and then capturing that "DONE!" to a txt file from a shell script. I believe I can use wget or curl to do this?