Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, Cron job was not running for few days and their were no oracle logs generated. Can anybody help me why cron job got stopped? What could be the reasons ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    May 2012
    Posts
    110

    CRON job not running, stopped ,WHY ?


    Hi,

    Cron job was not running for few days and their were no oracle logs generated.

    Can anybody help me why cron job got stopped?

    What could be the reasons for cron job stop in LINUX SERVER?


    Regards,
    Aparna.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    The number one reason would be that the cron daemon is not running (check for it in the output of "ps", or use "service crond status").

    Another reason might be that the cron job was inadvertently commented out or deleted. Check that it is there using "crontab -l" (or check the /etc/cron.d files if a system cron).

    Is there anything helpful in the cron log? Usually it is '/var/log/cron'.

    Also, you can add logging of your script that is being called by cron. for example, you could make your cron job look like this:

    Code:
    10 0 * * * /usr/bin/command  > /tmp/cron.log 2>&1
    All script output (STDOUT and STDERR) will go to the log file "/tmp/cron.log". So if there is an error, you might catch it there.

  3. #3
    Linux Newbie
    Join Date
    May 2012
    Posts
    110
    thanks for your response to my query.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •