>>>>> "PP" == Pierre Phaneuf <[EMAIL PROTECTED]> writes:

>> > As far as I know, crontab -e is perfectly safe.
>> 
>> "crontab -l | foo" and "foo | crontab -" are your friends.

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.  With appropriate Perl modules for
the cron files, this should be trivial.  But then, you probably aren't
doing this from mod_perl...

Reply via email to