Re: cron job with pid: xxxx Failed

From: Douglas R. Probst (doug.probst_at_rcn.com)
Date: 03/04/05


Date: Fri, 4 Mar 2005 15:36:59 -0500

Do the script write a log or are there outputs sent to /dev/null.
If the answer is /dev/null change the entry to redirect the output to a file
and then check to see what is in the file.
the syntax it /path/to/script > /path/to/file 2>&1
Hope this helps
Doug
"UnixShell" <sgtembe@hotmail.com> wrote in message
news:1109968094.730319.113730@f14g2000cwb.googlegroups.com...
> AIX 5.2
>
> Hello Everyone,
>
> I was trying to investigate on why one of scripts did not run through
> the cron yesterday & came across this entry in the cron log file under
> /var/adm/cron:
>
> cron job with pid: xxxx Failed
>
> There is no other explanation in the log file as to why it failed. The
> script has been running successfully via the cron every day for a long
> time & nothing has changed. It ran successfully today, again, without
> any change.
>
> Is there any other place I can look at to find the exact cause? Does
> anyone know what could have caused this?
>
> The script that failed runs everyday @ 13:00. There are 9 other scripts
> that also run via the cron at the same time. Out of the total 10
> scripts that kick-off @ 13:00, four had a "failed" message & while the
> remaining six had a "cron job with pid: xxxx Successful" message.
>
> Is there a limit on the number of scripts I can run from the cron that
> kick-off at the same time?
>
> Thanks for any help in advance.
> Suhas
>



Relevant Pages

  • Re: unix shell script ignores exit when in function that is piped to tee
    ... > I thought calling a function within a script did NOT create sub-shells. ... is going to be able to alter the log file to cover up any inappropriate ... entry in the log to the previous entry. ... The easiest way to use crypt to ...
    (comp.unix.shell)
  • Re: Log date
    ... It seems you can't use the "`" syntax because a crontab is not a script. ... If you had installed the mail command, you would have received a mail ... with the problem every time cron failed to execute your command. ... but what I would like is to create a log file with a date in the name ...
    (Ubuntu)
  • Re: Log date
    ... that the sript runs but no date on the log file ... It seems you can't use the "`" syntax because a crontab is not a script. ... If you had installed the mail command, you would have received a mail ... with the problem every time cron failed to execute your command. ...
    (Ubuntu)
  • Re: cron job with pid: xxxx Failed
    ... > the cron yesterday & came across this entry in the cron log file ... You mention that no log file is created. ... the script called by cron. ... Permissions have chaned somewhere. ...
    (comp.unix.admin)
  • Re: cron job with pid: xxxx Failed
    ... > the cron yesterday & came across this entry in the cron log file ... You mention that no log file is created. ... the script called by cron. ... Permissions have chaned somewhere. ...
    (comp.unix.aix)