Maybe I'm mistaken, but it seems that every-time I commented out a crontab entry,
it will deleted automatically.

eg.

ssh server
crontab -e
// commented out an entry using "#"
// save and quit

Next day

crontab -e
// notice the previously commented entry is disappear

User is root, using vi as editor, running on CentOS 5.7,
and the version of crontab (from man crontab) is Cron V4.1

link|improve this question

75% accept rate
Other ones you did not commented out are still there? – Felix Yan Dec 19 '11 at 7:10
Yes, that's the part I dun understand – ajreal Dec 19 '11 at 7:24
feedback

1 Answer

Try marking your comments with # rather than using the //, if I'm reading what you're doing correctly.

link|improve this answer
sorry, I'm using # – ajreal Dec 19 '11 at 7:42
Ah, my bad, I read it wrong then. Are you logging in as root via ssh? Are you sure you're looking at the same user's crontab each time? – nedm Dec 19 '11 at 7:48
Yup, login as root.And only root has existing crontab. – ajreal Dec 19 '11 at 8:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.