[SlugBug] Appending to Crontab ?

Andy Davidson andy at nosignal.org
Wed Jan 18 10:04:00 GMT 2006


Alan Dawson wrote:
> I've got a number of similar tasks that need to be done from cron whenever a new
> site is added.
> the cron tasks are already set out in a file called 
> /srv/site-1/cron/crontab.in
> /srv/site-2/cron/crontab.in
> ..
> but when i go 
> crontab -u site-process /srv/site-1/cron/crontab.in
> crontab -u site-process /srv/site-2/cron/crontab.in
> the second line wipes out the crons from the first

cat /srv/site-1/cron/crontab.in /srv/site-2/cron/crontab.in | crontab -u 
site-process -

The - means stdin (on Debian at least).

cheers
Andy




More information about the SlugBug mailing list