Vivek Khera wrote:
> PP> Ah yes. The problem with this is between the "crontab -l" and the
> PP> "crontab -". You have to parse the crontab, find your own entry without
>
> Very limited thinking going on here. The crontab program honors the
> EDITOR environment variable. Now... setenv EDITOR=myscript then run
> crontab -e. Poof. Atomic update.
That's what I intended to do (that's why I didn't mention concurrency
problems), but you still have to fork, which is hairy under mod_perl.
> With appropriate Perl modules for the cron files, this should be
> trivial. But then, you probably aren't doing this from mod_perl...
Well, yes, why? :-)
--
"I've run DOOM more in the last few days than I have the last few
months. I just love debugging ;-)" -- Linus Torvalds