what entry have you made , when doing crontab -e ?
After you edit crontab using crontab -e , do you save
the entry .
does crontab -l ( show your entry )?
Do you other cron entries work ?
Have you tried stop and starting cron ?
/sbin/init.d/cron stop
/sbin/init.d/cron start
Could the cronjob have ran , but there are errors in the script you run ? check roots mail ( mailx) to see if there are any mail files at the time you run your job ?
Have a look in /var/adm/cron/log file
tail the file tail log and have a look at the time stamp of when the last cron job ran ( or for any errors)
if the time is not recent , try stopping and restart the cron daemon as the root user.
You have a major problem here.
you are running echo "Hello" > file every hour every second.
So even if your cron job is running you will not know because this command will wipe out anything in file again and again.
run it as
* * * * * echo "Hello" >> file
I know if there are multiple PATHs (and at times, different behaviors) for a single command, e.g., shutdown, I have had to fully qualify the PATH in the crontab, e.g., "/usr/sbin/shutdown" vs. "/bin/shutdown" . Something to chew on.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.