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?