Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


launchd | 15 comments | Create New Account
Click here to return to the 'launchd' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
launchd
Authored by: SeanAhern on Sep 28, '07 01:47:17PM

You might benefit from exploring "launchd", the new way of doing crontab-like things. Launchd is actually much more powerful than cron, and people are encouraged to move to it and avoid the legacy cron, though it still works just fine.



[ Reply to This | # ]
launchd vs. cron
Authored by: jdw2004 on Sep 28, '07 02:22:32PM
Firstly, I would actually not particularly recommend cron, simply because that crontab will run whether or not you're logged in. Not that it makes a big difference in practice, of course, but it's just cleaner not to run stuff that you know will fail sometimes.

That said, I vastly prefer cron to launchd. Can I ask what you feel makes launchd is "much more powerful"? than cron? Yes, launchd has some features that cron does not have, like setting niceness or IO priority. But do you know why those features are not in cron? THEY DON'T BELONG THERE. We already have separate tools to control these things. Why should they be built into a scheduling tool? This is part of the Unix philosophy, which Apple just does not "get". Cron is stable, simple, well-understood, ubiquitous, and documented by an open standard. Launchd is a big hairball that's none of those things.

[ Reply to This | # ]

launchd vs. cron
Authored by: delight1 on Sep 28, '07 03:57:06PM

wouldn't a users's crontab only be run when they are logged in?



[ Reply to This | # ]
launchd vs. cron
Authored by: sjk on Sep 28, '07 05:03:51PM
wouldn't a users's crontab only be run when they are logged in?
Nope, cron runs crontabs whether or not corresponding users are logged in. If you want "only run if logged in" behavior for specific cron tasks they'd have to somehow check the login status (e.g. using a wrapper script).

[ Reply to This | # ]