Subscribed unsubscribe Subscribe Subscribe

hasen's tech life

Twitter: @hasen

incrontabで"editor finished with error: No such file or directory"というエラーが出たので対応.

Shell Cron

# incrontabで"editor finished with error: No such file or directory"というエラーが出たので対応.

# error
$ sudo incrontab -e -u root
> editor finished with error: No such file or directory
$ vi /etc/incron.conf
# デフォルトエディタがvimになっているがvimがなかった...
$ which vim
> /usr/bin/which: no vim in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/vagrant/bin)
$ sudo vi /etc/incron.conf
++ editor = vi

# success
$ sudo incrontab -e -u root