Hi
I set my cron like this:
-
-
-
-
- /usr/bin/php /Users/dckapmacmini/Sites/c3design/CsvMappingCron.php > /dev/null &
-
-
-
But cron is not running. If i run the script manually, it’s working fine.
Please help me.
Thanks.
Hi
I set my cron like this:
But cron is not running. If i run the script manually, it’s working fine.
Please help me.
Thanks.
I am not a Mac user, but can give some tips.
1- You can check the user emails, cron will usually send errors to that email, probably it will be root.
2- PHP need to be installed as CGI for cli use.
3- Put this at the end of your command to get the exact errors:
2>/path/to/dir/error.log
So your command will look like:
* * * * * /usr/bin/php /Users/dckapmacmini/Sites/c3design/CsvMappingCron.php 2>/Users/dckapmacmini/Sites/c3design/error.log
Good Luck
This might sound silly, but do you write a newline after the end of the cron line? (How are you writing it?)
> This might sound silly, but do you write a newline after the end of the cron line? (How are you writing it?)
that’s what my suggestion was going to be.
once you’ve added a new line on the end (just by putting your text cursor at the end and pressing return), if that still doesn’t work, check what type of new lines your text editor is using. there’s three types aren’t there? depending on which text editor you’re using, especially on a mac, it may give you the wrong type for a cron job. unix style new lines are the ones you want i think.