osx - crontab won't work on mac 10.6.7 -


i create simple cron job editing /etc/crontab following:

*/2     *       *       *       *       *       php /users/min/documents/testcron.php 

and testcron.php simple as:

<?php  $fd = fopen("/users/min/documents/testcron.txt", 'a'); fwrite($fd, "test--cron--\n"); fclose($fd); ?> 

then save crontab file , hope magic happen, nothing happened. run command manually , worked.

php /users/min/documents/testcron.php 

anyone have idea? thanks

not certain, bet file not being read. perhaps have

$ crontab -e 

to edit, , gets read after save?

you test theory doing

$ crontab -l 

to list table see if working already.


Comments