Home > cron > Editing Cron The Easy Way

Editing Cron The Easy Way

January 10th, 2009
Goto comments Leave a comment
Whenever I used to try to edit my cron using ‘crontab -e’ I would get the following error.

/bin/sh: /usr/bin/elvis: No such file or directory
crontab: "/usr/bin/elvis" exited with status 127

Now I could try to change my editor settings, but with multiple systems and working with others that shared the same account, this wasn’t the best solution.

To edit the cron without having to rely on the editor settings I first get the cron into a text file to edit.

crontab -l > cron.txt

Then once I’ve made my changes all I had to do was import it back in.

crontab cron.txt

It’s that easy and you even get a copy of the cron.txt for backup if you want to keep it.

cron

  1. No comments yet.
  1. No trackbacks yet.