On Tuesday 17 Aug 2010 18:57:18 Brian K. White wrote:
On 8/17/2010 1:05 PM, Bob Williams wrote:
Hi,
What is the correct way to edit the system crontab file? I know I've done it in the past, because I have /etc/crontab which contains all my backup routines. Is it permissible to edit it with any editor (eg. vim, kate), as root?
I've tried issuing
~ # crontab -e
but that just creates a new, blank file.
I think I'm getting too old for this :(
Bob
[...]
You can edit /etc/crontab directly with any editor of your choice at any time and the effects take place immediately when you save the file. No need to restart cron, no need to notify cron or reload the file with the crontab command.
[...] Brian, many thanks for that clear, lucid and helpful answer. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.3, Kernel 2.6.34.12-desktop, KDE 4.4.4 Intel Core2 Quad Q9400 2.66GHz, 8GB DDR RAM, nVidia GeForce 9600GT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org