Where is your php binary? (try "which php") The command path under crontab is not always the same as in a login shell, so you might need to spell it out like:
*/10 * * * * /usr/local/bin/php /home/harpreet/crontest.php -Steve On Tuesday, April 16, 2002, at 12:17 PM, Harpreet Kaur wrote: > Thanks Lisi. The use of php in front of the path made > /home/harpreet/crontest.php run one time when run from the telnet > prompt. But it still doesnt run from the crontab. I created a > mycron.txt file with the below statement. The put crontab mysql.txt to > specify the cron. But it doesnt seem to run this way. What am i doing > wrong. Please help. > > Help is appreciated. > > Regards, > harpreet kaur > > > >> From: Lisi <[EMAIL PROTECTED]> >> To: "Harpreet Kaur" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >> Subject: Re: [PHP-DB] cron job and php >> Date: Tue, 16 Apr 2002 19:13:11 +0200 >> >> Try */1 * * * * php /home/harpreet/crontest.php >> >> or */1 * * * * php ~/crontest.php >> >> ~ means your home directory. >> >> I think this should work, every minute. >> >> -Lisi >> >> >> 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. >>> >>> Help is appreciated, >>> >>> regards, >>> Harpreet Kaur >>> >>> _________________________________________________________________ >>> Get your FREE download of MSN Explorer at >>> http://explorer.msn.com/intl.asp. >>> >>> >>> -- >>> PHP Database Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >> > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > -- PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php