i have a job scheduled in crontab. The problem is, it is not running automatically as per the time scheduled. But runs when executed manually. What would be the problem? Help me with this please.
Hi,
Welcome to the forums.
There could be a few points you need to make sure.
- Script not executing at all or script not executing successfully?
If its later, most of the time its an environmental issue.
1 Like
Script not executing at all.
Again, How did you find that out? Are there other scripts scheduled for the same user? which are executing?
This is a fairly common complaint. Try checking out the links at the bottom of this page:
- Crontab - entry not working , cron job not running,
- Oracle Scheduled job not running as per schedule.,
- variable has no value if run the script automatically/scheduled,
- crontab job not running, and
- Scheduled job.
If none of these tell you how to solve your problem, give us a lot more details:
- What OS are you using?
- What is the script being run by the
cron
job? - What is the entry in your
crontab
file that kicks off yourcron
job?
I found that out using Grep command. Other jobs in the crob are working fine automatically.
grep
? What did you find out with grep
? Again, show the context of your problem as requested above.