crontab won't work on mac 10.6.7
Posted
by
ohana
on Stack Overflow
See other posts from Stack Overflow
or by ohana
Published on 2011-04-28T20:36:11Z
Indexed on
2012/08/31
15:39 UTC
Read the original article
Hit count: 218
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
© Stack Overflow or respective owner