Paul W. Abrahams wrote:
On Friday 15 October 2004 7:46 pm, Patrick Shanahan wrote:
* Donald D Henson
[10-15-04 18:43]: I have a simple problem that I'm sure has a simple answer but I don't seem to be able to figure it out. Where the heck do you put a crontab that is to run as root? (It's running rdiff-backup nightly.) Any assistance will be appreciated.
in a root shell (ie: as root) issue: crontab -e
That will work, of course, but I find it more convenient to create a crontab in a local file ~/mycrontab (in this case /home/root/mycrontab) and then do: crontab ~/mycrontab crontab -l # check that it worked
Paul
The penny finally dropped and man do I feel stupid. After struggling with this problem for several days, it suddently occurred to me that while the default file name for the cron table is "crontab", crontab is also a command. Once I realized that I had to issue the command "crontab <path to crontab file>", everything works as it should. I want to thank everyone who responded. Each reply played a part in killing my stupidity, at least on this problem. -- Donald D. Henson, Managing Director West El Paso Information Network The "Non-Initiation of Force Principle" Rules