Operating System - Linux
1753556 Members
5698 Online
108796 Solutions
New Discussion юеВ

Re: crontab in suse linux

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

crontab in suse linux

Hi

I am using Suse linux.

I issued following command to view the crontab entries.

>crontab -l

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.10132 installed on Fri Feb 27 13:40:47 2009)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.1933 installed on Tue Jun 17 14:49:55 2008)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)



What is the meaning of "DO NOT EDIT THIS FILE - edit the master and reinstall."

pls explain me.
7 REPLIES 7
Suraj K Sankari
Honored Contributor
Solution

Re: crontab in suse linux

Hi,

>>What is the meaning of "DO NOT EDIT THIS FILE - edit the master and reinstall."

It means do not edit thil file using vi editor.

remember always use "crontab -e" to edit crontab entries

suraj
Jozef_Novak
Respected Contributor

Re: crontab in suse linux

Yes, you should edit crobjobs with crontab -e. That's basically what the message tells you.
I am not sure about SUSE, but HPUX used to have a tool called cronedit, which did basically crontab -e, but placed a lock on the crontab file, making sure that only one user at a time was changing it.

J.
Matti_Kurkela
Honored Contributor

Re: crontab in suse linux

The cron implementation in SuSE Linux is probably called "Vixie Cron".

Debian uses this too, but it adds this comment to the man page of the crontab command:

-------------
DEBIAN SPECIFIC

The "out-of-the-box" behaviour for crontab -l is to display the three line "DO NOT EDIT THIS FILE" header that is placed at the beginning of the crontab when it is installed. The problem is that it makes the sequence

crontab -l | crontab -

non-idempotent -- you keep adding copies of the header. This causes pain to scripts that use sed to edit a crontab.
-------------

In other words, your crontab has probably been edited by a script. Maybe an installation script of some application?

MK
MK
Taifur
Respected Contributor

Re: crontab in suse linux

Hi Senthil,

>>meaning of "DO NOT EDIT THIS FILE
You can not edit this file by vi editor.

For adding anything, you have to use
#crontab -e
then save the the file.

Check below link for details.

http://www-uxsup.csx.cam.ac.uk/pub/doc/suse/suse9.3/suselinux-adminguide_en/cha.suse.html

If it helps , pls assign point.

Rgds//
Taifur
Dennis Handly
Acclaimed Contributor

Re: crontab in suse linux

>suraj: remember always use "crontab -e" to edit crontab entries

It would suggest if that's what it meant, it should have said that.

James R. Ferguson
Acclaimed Contributor

Re: crontab in suse linux

Hi Senthil:

The 'Vixie' implementation (and more about the history of the crontab) is discussed here:

http://en.wikipedia.org/wiki/Cron

Regards!

...JRF...
Kranti Mahmud
Honored Contributor

Re: crontab in suse linux

Hi Senthil,

What is the meaning of "DO NOT EDIT THIS FILE - edit the master and reinstall."

It means do not edit thil file using vi editor.

For editing or other operation of cron, please read the belo links:

http://docs.huihoo.com/opensolaris/system-administration-guide-advanced-administration/html/ch15s04.html

http://www.adminschoice.com/docs/crontab.htm

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!