Re[2]: [PHP-DB] cron job and php
| From: | Julie Meloni | Date: | Tue, 16 Apr 2002 17:29:52 +0000 |
| Subject: | Re[2]: [PHP-DB] cron job and php | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18560@lists.php.net to get a copy of this message | ||
>>At 03:54 PM 4/16/02 +0000, Harpreet Kaur wrote:
>>>Can i run a php page using a crontab job. I am trying to do so but no
>>>luck. My cron job statement is :
>>>* * * * * lynx /home/harpreet/crontest.php
>>>
>>>Actually i want to run a script every 10 minutes to do some background job
>>>like we do in sql server. How can i do it with mysql and php.
I use:
0-59/10 * * * * root lynx -dump http://servername/yourscript.php 1>/dev/null
2>&1
Assuming thr utility script is under your web server docroot.
- Julie
--> Julie Meloni
--> julie@thickbook.com
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20