RAK7249 cron job not running


I wrote a sample code name datecheck.sh with permission 755 and placed at /root
Here is the code:
date >> /root/date.txt

Then I run crontab -e and add */10 * * * * /bin/sh /root/datecheck.sh
After save the cron, I run /etc/init.d/cron start and /etc/init.d/cron enable, I run ps and find cron is running, but no date.txt is generated at /root, anything wrong?

@phchan Hi, why did you include the /bin/sh in the cron job? Try to call the script directly:
*/10 * * * * /root/datecheck.sh in the cron list.

I remove the /bin/sh, and it doesn’t run