Problem solve Get help with specific problems with your technologies, process and projects.

A far safer way to edit crontab

Here's a way to edit crontab that minimized the chance for typos.

A far safer method of editing your crontab file is like this:

#crontab -l > local_file
#vi local_file
#crontab local_file

The first command copies the user's crontab to a file where it can be safely edited. If a mistake is made it will not effect the actual crontab entry. Once the user has edited their file, they can active that file by using the last command listed above.

Click here for more crontab editing tips!

This was last published in September 2002

Dig Deeper on Alternative operating system security

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.