‘crontab -e’ kept telling me ‘crontab: no changes made to crontab’ even though I’ve made changes. When I run ‘crontab -l’ to check, my changes were not saved.
Turned out it’s due to my environment variable:
export EDITOR=/usr/bin/gvim
Changing it to vim solves the problem:
export EDITOR=/usr/bin/vim
One reply on “crontab -e not saving changes”
Thanks a ton! Was having the same issue and this resolved it.