Re: crontab, PHP and MACOSX

From: Date: Wed, 28 Mar 2007 23:58:28 +0000
Subject: Re: crontab, PHP and MACOSX
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-251585@lists.php.net to get a copy of this message
Yvan wrote:
Hello all, I don't know if it's the correct list, but as a php script is involved....
Nope, not the right list. Cron isn't running - which has absolutely nothing to do with php.
I try to start a set up a crontab job with crontab -e, which should start a php script: */10 * * * * cd /Users/yvan/Sites/est-pac/ ; /usr/bin/php /Users/yvan/Sites/est-pac/controller.php
You don't need the cd command, change it to: /usr/bin/php /Users/yvan/Sites/est-pac/controller.php also add a MAILTO="your_email_Address.com" at the top of the file in case it's throwing any errors. No idea where mac puts cron files but on linux systems it's usually /var/spool/cron/your_user_name (I'm guessing *bsd is the same but ask them). If you're still having problems I'd suggest asking a mac list. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#251585) next »