crontab won't work on mac 10.6.7
- by ohana
i create a simple cron job by editing /etc/crontab as following:
*/2 * * * * * php /Users/min/Documents/testcron.php
and the testcron.php is simple as:
<?php
$fd = fopen("/Users/min/Documents/testcron.txt", 'a');
fwrite($fd, "test--cron--\n");
fclose($fd);
?>
then simply save the crontab file and hope magic happen, but nothing happened. i even run the command manually and it worked.
php /Users/min/Documents/testcron.php
anyone have any idea? Thanks