how to add stuff to crontab without using crontab -e

Mikkel L. Ellertson mikkel at infinity-ltd.com
Mon Apr 13 16:04:08 UTC 2009


Steven W. Orr wrote:
> 
> There have been a number of answers to your problem, none of which I like.
> 
> Your crontab is handwritten source code and needs to be treated as such. 
> You may not appreciate what I'm telling you until you actually one day 
> lose your crontab. Edit a file in your home directory called ~/.crontab 
> and use whatever editor you like. Make your crontab ref whatever programs 
> you want and then when your done, just run
> 
> crontab < ~/.crontab
> 
> to install it. You can check to see that it worked by just running 
> crontab -l
> 
> Does this help?
> 
I still like the idea of installing a file in /etc/cron.d. This is
the kind of cron job it was designed for. It also makes it easy to
edit.remove. Just edit the file on one machine, and copy it to all
the other machines.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090413/cfc007e7/attachment-0001.sig>


More information about the fedora-list mailing list