Note: this question is not about how to edit cron tab but how to make cron work
- I edited my cron using
env EDITOR=joe crontab -e
- I entered
1 * * * * echo 'test' > /Users/radek/Backup/rationalvmware/test.txt
and it does nothing although the cron is set up correctly. Checked via Cronnix and viewed the cron in /var/cron/tabs. Editing crontab using Cronnix gives me the same results.
If I run echo 'test' > /Users/radek/Backup/rationalvmware/test.txt
manually it creates a files as expected so I assume that the command I provide to cron is correct one.
Is there anything special I have to do to make cron work on OSX? How can I check it the the cron is running.
What's the equivalent of /var/log/messages on OSX? I can see in messages on SuSE that cron works.
cron
runs in a different environment than your own test command would. For example: you might often need absolute paths.