I'm already using crontab, accessing it with "crontab -e" command and it works just fine. It would be great on my case to edit the cron directly in the file, so I'm trying to use the file located in /etc/crontab directory, but for some reason the cron jobs wont execute (just a dummy job).
I tryied to change the permissions or create files in /etc/cron.d but keeps not working.
This is my cron file:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
* * * * * root echo "123" > /home/ubuntu/test.txt
The two first lines was already in the file, so I didn't change that.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…