I have a list of cronjob set to run in a regular schedule. After read and tried this suggestion here:
https://stackoverflow.com/a/22744360/1478789
I still haven't able to figure it out why my cron job is not running.
When I tried with this simple command:
* * * * * /bin/echo "cron works" >> /home/user/somefile.log
It does not append any text to the intended file.
So, I try to do it "manually" by executing the following command:
user@machine:~$ echo "Random text" >> /home/user/somefile.log
It appends some text to the file.
Lastly, when I issue the following command:
user@machine:~$ grep CRON /var/log/syslog
It doesn't print anything at all
By the way, I edit my cron
user@machine:~$ sudo EDITOR=nano crontab -e
if, I use this:
user@machine:~$ EDITOR=nano crontab -e (without sudo)
I get the following message:
no crontab for user - using an empty one
Error reading /home/user/.nano_history: permission denied
Press Enter to continue starting nano
Can anyone help my to troubleshoot this, thanks.