Professional Web Applications Themes

cron job with pid: x Failed - Linux / Unix Administration

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: x 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 ...

  1. #1

    Default cron job with pid: x Failed

    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: x 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: x 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

    UnixShell Guest

  2. #2

    Default Re: cron job with pid: x Failed

    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" <com> wrote in message
    news:googlegroups.com... 


    Douglas Guest

  3. #3

    Default Re: cron job with pid: x Failed

    Doug,

    I already have the stdout & stderr redirected to a file as you have
    mentioned, however no file for yesterday was created. I could see that
    the time stamp on the file was from the day before, but not yesterday.

    That is what is puzzling..It was as if the cron did not invoke the
    script at all.

    Thanks,
    Suhas

    UnixShell Guest

  4. Moderated Post

    Default Re: cron job with pid: x Failed

    Removed by Administrator
    Doug Guest
    Moderated Post

  5. #5

    Default Re: cron job with pid: x Failed

    There is a limit of jobs running simultaneously from cron. By default,
    the limit is 100. Check out /var/adm/cron/queuedefs. It is not a limit
    of how many start at the same time, but how many are running at the
    same time. See how many lines of output you get from the following.

    # ps -ef|grep cron|grep -v grep|awk '{print $2}'|while read; do ps
    -ef|grep $REPLY;done

    aix@mail.com Guest

Similar Threads

  1. Replies: 3
    Last Post: April 28th, 05:14 AM
  2. Need to Format a zipcode into xx-x.
    By Jeff Thur in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: February 18th, 04:14 AM
  3. No PDF file was created because x.doc does not exist
    By Phil Dornan in forum Adobe Acrobat Windows
    Replies: 2
    Last Post: May 12th, 02:01 PM
  4. if a number is say xx how to make it 20xx, but ignore if it is x?
    By The Biscuit Eater in forum PHP Development
    Replies: 1
    Last Post: October 30th, 09:52 AM
  5. aspnet_wp.exe (PID: x) stopped unexpectedly.
    By Matt Sollars in forum ASP.NET General
    Replies: 2
    Last Post: August 5th, 02:17 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139