I can simulate your error.
Here's my code for demo1.sh
Code:
$> cat demo1.sh
#!/bin/bash
clear
echo "this is testing"
echo "See the todays date"
date -u
You should have a simular line in /etc/crontab (just an example, it will run every 3 minutes):
0-59/3 * * * * root run-parts /etc/cron.test4Forum
.
If your troubles persists, can you also post the configuration files:
- /etc/crontab
- /etc/init.d. or /lib/systemd/system/crond.service
?
Don't forget to restart the cron-daemon each time you change one of the these files.
Code:
$> service crond restart