Paul wrote regarding 'Re: [SLE] crontab' on Fri, Oct 15 at 21:16:
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
Doesn't that command replace the current crontab with the one specified on the command line? Wouldn't it be easier just to run "crontab -e", which starts up the editor specified by $EDITOR, rather than starting up the editor, saving a file, and then running crontab on that file? Seems like you're adding some extra steps to the process... Eh, I guess "There's More Than One Way To Do It". Whatever works. :) --Danny