Switching Crontab Files Via At



The actual crontab file for a given user has a warning
about not editing it directly. When you use crontab -e, the
application takes care of installing the new crontab for the
user and appears to do a kill -HUP on cron to get it to load the
new crontab for that user.

Suppose one wants to run a particular crontab while on
vacation or during some other unusual time period and then switch
back to a "normal" crontab. Is it safe to make at cp a new
version of crontab to /var/spool/crontabs/user and then do a KILL
-HUP on cron's PID?

I want to properly duplicate what the crontab -e
application does and not introduce some problem that bites later.

Thanks for any thoughts.

Martin McCormick WB5AGZ Stillwater, OK
Systems Engineer
OSU Information Technology Department Network Operations Group


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • RE: Why this crontab does not work?
    ... Why this crontab does not work? ... apt-get upgrade -d ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: Postgres
    ... see a reason why other users should access /root) ... chmod 600 /root/.pgpass ... >> I'm trying to write a backup script for postgres and us a crontab on it. ... > To unsubscribe, ...
    (freebsd-stable)
  • RE: crontab
    ... I have to enter my crontabs with a dot between the days field and the script ... Database Administrator ... - did u restart the cron deamon after you made changes to the crontab? ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: Shell eroor while running crontab daemon
    ... Now I have the folling in my crontab. ... After I got the error message, ... >> Do you Yahoo!? ...
    (RedHat)
  • Re: Crontab Problem
    ... neither the crontab command nor the cron daemon ... the crontab will appear to load ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)