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 first published in September 2002

Dig deeper on Alternative OS security: Mac, Linux, Unix, etc.

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchCloudSecurity

SearchNetworking

SearchCIO

SearchConsumerization

SearchEnterpriseDesktop

SearchCloudComputing

ComputerWeekly

Close