Search code examples
cronamazon-lightsail

Crontab -e not working. but crontab -l works


I use an Amazon Lightsail Lamp Server.

I am trying to edit a CRON job, which I setup previously using crontab -e but the editor keeps returning 964 and a blank page.

crontab -l shows the content of the file.

Any tips ? enter image description here


Solution

  • Solved. The issue was with the text editor used by my terminal. These were the steps I took :

    export EDITOR=/bin/nano
    source ~/.bashrc
    echo $EDITOR
    export VISUAL="/bin/nano"