Working on Linux, we have to use cron to execute jobs such as backups, drupal's search index build and many others.
But how come nothing happens when you run:
crontab -e
Many reasons could cause this, but it is most likely that your session's default editor is not installed or somehow ... vanished
Assuming you have vim working on your Linux,
here is how you can change your session's default editor to vim:
export EDITOR="vim"
Now, if you type again
crontab -e
a vim editor will open the cron file for editing
If you like to make it permanent,
here is a link to usefull article change the default editor
by Kevin van Zonneveld, aka @kvz
Liked it? Have a Question on it?
Write a comment
The Devart Team









