Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

At the top of my sudo crontab -e result it shows this:

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (Dox-Web-1_CRONTAB installed on Fri Jul 30 17:51:25 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
# DO NOT EDIT THIS FILE FROM CRONTAB
# EDIT ORIGINAL FILE /scripts/Dox-Web-1_CRONTAB

I edited the file specified here, then I tried /etc/init.d/cron reload /etc/init.d/cron restart but when I sudo edit the crontab it doesn't show up. What am I doing wrong?

share|improve this question
add comment

1 Answer

After you edit /scripts/Dox-Web-1_CRONTAB, you need to run

$ crontab /scripts/Dox-Web-1_CRONTAB

which loads it into the user crontab file. You can verify it's been loaded by

$ crontab -l

It is ok to edit it with

$ crontab -e

The warning is saying that you should not edit the crontab files that are stored in /var/spool/cron/crontabs/, which is where crontab filename and crontab -e write to.

Also, you do not need to restart or reload the cron daemon. The crontab command tells the cron daemon that the crontab file has been updated.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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