Home > Bash, crontab > crontab editor

crontab editor

To use your favoriate editor to modify user’s crontab, here’s how:

1) Quick and dirty solutions

   EDITOR=vim crontab -e

or

   export EIDTOR=vim
   crontab -e

2) Permanent solution:
add the following line to either ~/.bashrc or ~/.bash_profile

export EDITOR=vim
Advertisements
Categories: Bash, crontab
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: