in reply to Re: Cron on Mac OS X
in thread Cron on Mac OS X

I tried using MAILTO (the script does print something to STDOUT), but I received no e-mail. I'm guessing that the crontab is just not executing. It has also been suggested to me that I might need to "start" my crontab. I'm not sure what that means. Thanks.

Replies are listed 'Best First'.
Re^3: Cron on Mac OS X
by pjotrik (Friar) on Sep 09, 2008 at 16:18 UTC
    Crontab is a frontend program for the cron deamon - that's the one that has to be running. You can tell whether it is by doing ps aux | grep cron. On Linux the deamon is usually called crond, on a Mac I've got access to, it's simply called cron.

    On Linux (the flavors I know) you put a startup script in /etc/init.d/, on Mac this should be handled by launchd, launchctl is used for the control over this demon.

    Can't tell you much more, my knowledge of Mac is very limited. Search the web, read the docs, wait for more replies...

    Hope that helps

      Okay, I've tried the command that you suggested and this is what I got.

      root 6217 0.0 0.0 76480 656 ?? Ss Fri12PM 0:00.06 + /usr/sbin/cron myname 7219 0.0 0.0 75960 340 s000 R+ 11:36AM 0:00.00 +grep cron

      I apologize for being so UNIX wimpy. I'm not sure, exactly, what this is telling me.

        The first line is telling you that cron is indeed running. (The second is telling you that you were looking for the first line, and can be ignored.) That makes it very strange that you should not be getting any response when crontab -l admits that it knows about your crontab file.