in reply to Cron on Mac OS X
and then checking whether the file /tmp/date.txt was changed. Another way is to profit from the fact that cron sends an email when a task prints something to the standard output.21 08 * * * date > /tmp/date.txt
Beware of the fact, that your cron tasks do not have the same environment (as $PATH, for example) as your shell does. That's where problems may arise.MAILTO=your@mail.com 21 08 * * * date
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cron on Mac OS X
by Ninth Prince (Acolyte) on Sep 09, 2008 at 16:02 UTC | |
by pjotrik (Friar) on Sep 09, 2008 at 16:18 UTC | |
by Ninth Prince (Acolyte) on Sep 09, 2008 at 16:42 UTC | |
by JadeNB (Chaplain) on Sep 09, 2008 at 17:18 UTC |