Better Scheduler Than Cron? 66
Chanc_Gorkon asks: "I am looking for an open source job scheduler that is better than cron. I need a scheduler that has dependency checking, preemption (to stop jobs that access the same resources from running at the same time) and -full- logging. Cron e-mails are nice, but I usually end up cleaning them out with out reading. E-mailing the sysadmin -only- when a job does not get kicked off would be the preferable option. I have scoured Freshmeat and Sourceforge and have found nothing that comes close to what I am looking for. Do you guys have some options for me?"
launchd (Score:5, Informative)
Here's the manpage [apple.com]; here's a tutorial [macgeekery.com] (geared towards OS X developers, unfortunately), and here's John Siracusa's overview of launchd from Ars Technica [arstechnica.com].
Re:launchd (Score:5, Informative)
Write some scripts (Score:5, Informative)
Serializing cron jobs that access some resource? Use "lockfile". Wrap it with something that claims the necessary locks in the right order, runs the real script, and then removes all the locks.
Only producing output in the case of an error? Write a script that saves output to a temporary file, and then cats the file if the exit value is not "success".
These should both be pretty basic tasks that can be done in shell, python, or perl. And you can take them with you t
Similiar question (Score:3, Informative)
Re:launchd (Score:5, Informative)
Options (Score:4, Informative)
Re:Cron (Score:3, Informative)
And check out this beatiful crontab from the Gentoo forums:
What's In Your Crontab? [gentoo.org]