[opensuse] Crontab -e question
To edit my own crontab, I type crontab -e, which opens my crontab in vim (default editor here). The file contains numerous lines like this # DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Sun Aug 14 14:29:06 2016) # (Cronie version 4.2) but when write and close the file (:wq), I get this 10:11 bob@hexagon:~> crontab -e crontab: installing new crontab which is what I expect and not alarming. Why all the repeated warnings in the file itself? -- Bob Williams System: Linux 4.1.20-11-default Distro: openSUSE 42.1 (x86_64) Desktop: KDE Frameworks: 5.21.0, Qt: 5.5.1 and Plasma:
Am 19.08.2016 um 12:27 schrieb Bob Williams:
To edit my own crontab, I type crontab -e, which opens my crontab in vim (default editor here). The file contains numerous lines like this
# DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Sun Aug 14 14:29:06 2016) # (Cronie version 4.2)
but when write and close the file (:wq), I get this
10:11 bob@hexagon:~> crontab -e crontab: installing new crontab
which is what I expect and not alarming. Why all the repeated warnings in the file itself?
hello, the warnings in the file itself just tell you to not edit this file directly! just use crontab -e and all is fine. the crontab needs to get installed after file changes and a direct edit of the fiel itself won't do a install. nothing to worry here ;) greetings becki -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 19 Aug 2016 13:05:25 +0200 Admin Beckspaced <admin@beckspaced.com> wrote:
Am 19.08.2016 um 12:27 schrieb Bob Williams:
To edit my own crontab, I type crontab -e, which opens my crontab in vim (default editor here). The file contains numerous lines like this
# DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Sun Aug 14 14:29:06 2016) # (Cronie version 4.2)
but when write and close the file (:wq), I get this
10:11 bob@hexagon:~> crontab -e crontab: installing new crontab
which is what I expect and not alarming. Why all the repeated warnings in the file itself?
hello,
the warnings in the file itself just tell you to not edit this file directly! just use crontab -e and all is fine.
the crontab needs to get installed after file changes and a direct edit of the fiel itself won't do a install.
nothing to worry here ;)
greetings becki
Many thanks becki, Oliver and Per. My crontab worked so I was just curious about the warnings. Bob -- Bob Williams System: Linux 4.1.20-11-default Distro: openSUSE 42.1 (x86_64) Desktop: KDE Frameworks: 5.21.0, Qt: 5.5.1 and Plasma: -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bob Williams wrote:
On Fri, 19 Aug 2016 13:05:25 +0200 Admin Beckspaced <admin@beckspaced.com> wrote:
Am 19.08.2016 um 12:27 schrieb Bob Williams:
To edit my own crontab, I type crontab -e, which opens my crontab in vim (default editor here). The file contains numerous lines like this
# DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Sun Aug 14 14:29:06 2016) # (Cronie version 4.2)
but when write and close the file (:wq), I get this
10:11 bob@hexagon:~> crontab -e crontab: installing new crontab
which is what I expect and not alarming. Why all the repeated warnings in the file itself?
hello,
the warnings in the file itself just tell you to not edit this file directly! just use crontab -e and all is fine.
the crontab needs to get installed after file changes and a direct edit of the fiel itself won't do a install.
nothing to worry here ;)
greetings becki
Many thanks becki, Oliver and Per. My crontab worked so I was just curious about the warnings.
Bob, I don't know how they ended up in there, but if you delete them, they should not return. -- Per Jessen, Zürich (22.6°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 19 Aug 2016 14:01:54 +0200 Per Jessen <per@computer.org> wrote:
Bob Williams wrote:
On Fri, 19 Aug 2016 13:05:25 +0200 Admin Beckspaced <admin@beckspaced.com> wrote:
Am 19.08.2016 um 12:27 schrieb Bob Williams:
To edit my own crontab, I type crontab -e, which opens my crontab in vim (default editor here). The file contains numerous lines like this
# DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Sun Aug 14 14:29:06 2016) # (Cronie version 4.2)
but when write and close the file (:wq), I get this
10:11 bob@hexagon:~> crontab -e crontab: installing new crontab
which is what I expect and not alarming. Why all the repeated warnings in the file itself?
hello,
the warnings in the file itself just tell you to not edit this file directly! just use crontab -e and all is fine.
the crontab needs to get installed after file changes and a direct edit of the fiel itself won't do a install.
nothing to worry here ;)
greetings becki
Many thanks becki, Oliver and Per. My crontab worked so I was just curious about the warnings.
Bob, I don't know how they ended up in there, but if you delete them, they should not return.
Per, thank you. That's what I've done. Bob -- Bob Williams System: Linux 4.1.20-11-default Distro: openSUSE 42.1 (x86_64) Desktop: KDE Frameworks: 5.21.0, Qt: 5.5.1 and Plasma: -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bob Williams wrote:
To edit my own crontab, I type crontab -e, which opens my crontab in vim (default editor here). The file contains numerous lines like this
# DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Sun Aug 14 14:29:06 2016) # (Cronie version 4.2)
but when write and close the file (:wq), I get this
10:11 bob@hexagon:~> crontab -e crontab: installing new crontab
which is what I expect and not alarming. Why all the repeated warnings in the file itself?
Yes, why any warnings at all - I have never seen that warning when editing my personal crontab. Leap421, cron-4.2, cronie-1.4.11. -- Per Jessen, Zürich (21.8°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Friday 19 August 2016 11:27:03 Bob Williams wrote:
To edit my own crontab, I type crontab -e, which opens my crontab in vim (default editor here). The file contains numerous lines like this
# DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Sun Aug 14 14:29:06 2016) # (Cronie version 4.2)
but when write and close the file (:wq), I get this
10:11 bob@hexagon:~> crontab -e crontab: installing new crontab
which is what I expect and not alarming. Why all the repeated warnings in the file itself?
If I do cat /var/spool/cron/tabs/<my_username> I see these warnings. If I call "crontab -l", I see them, too. If I call "crontab -e" I don't so everything is as expected. Maybe by mistake you somehow listed the file and wrote the full content with "crontab -e"? Then maybe it even shows you these warnings twice? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-08-19 13:11, Oliver Kurz wrote:
On Friday 19 August 2016 11:27:03 Bob Williams wrote:
To edit my own crontab, I type crontab -e, which opens my crontab in vim (default editor here). The file contains numerous lines like this
# DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Sun Aug 14 14:29:06 2016) # (Cronie version 4.2)
but when write and close the file (:wq), I get this
10:11 bob@hexagon:~> crontab -e crontab: installing new crontab
which is what I expect and not alarming. Why all the repeated warnings in the file itself?
If I do cat /var/spool/cron/tabs/<my_username>
I see these warnings. If I call "crontab -l", I see them, too. If I call "crontab -e" I don't so everything is as expected. Maybe by mistake you somehow listed the file and wrote the full content with "crontab -e"? Then maybe it even shows you these warnings twice?
The warning is not "displayed", but are comments in the crontab file. Apparently using crontab -e they are removed from view. Somehow the process has to detect those comments to remove them; thus if they were altered at some time, they are probably not recognized and displayed. The warning refers to not edit directly "/var/spool/cron/tabs/<my_username>", but use crontab -e instead. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
participants (5)
-
Admin Beckspaced
-
Bob Williams
-
Carlos E. R.
-
Oliver Kurz
-
Per Jessen