Professional Web Applications Themes

A script stops halfway before the supposed natural end without any error/warning message - Linux / Unix Administration

Hi All, I have a php script running on shell. Basically it checks more than 10k phone numbers one by one in a loop way. It will send each of the numbers to a remote host for validation checking, and write the result to a local file. On one server (an in-house built Linux), it is running perfect. However, on another server (RH 9), it's hehavior is very strange: it will stop at a phone number between the 900th to 1000th without any error message. Looks like it stops naturally, but this is not a natural end. It is supposed ...

  1. #1

    Default A script stops halfway before the supposed natural end without any error/warning message

    Hi All,

    I have a php script running on shell. Basically it checks more
    than 10k phone numbers one by one in a loop way. It will send
    each of the numbers to a remote host for validation checking,
    and write the result to a local file. On one server (an in-house
    built Linux), it is running perfect. However, on another server
    (RH 9), it's hehavior is very strange: it will stop at a phone number
    between the 900th to 1000th without any error message. Looks
    like it stops naturally, but this is not a natural end. It is supposed
    to stop after the last phone number was checked.
    I am thinking it might be the case that the script received a stop
    signal from the system. - I have no idea, but just guess. I am not
    a UNIX people. I think in this group maybe someone can give
    me a hand. Thanks in advance!

    Alex


    Alex Shi Guest

  2. #2

    Default Re: A script stops halfway before the supposed natural end without any error/warning message

    In article <T0bLc.9103$x34.3596nntp-post.primus.ca>, "Alex Shi" <chpshistonix.com> writes:
    > Hi All,
    >
    > I have a php script running on shell. Basically it checks more
    > than 10k phone numbers one by one in a loop way. It will send
    > each of the numbers to a remote host for validation checking,
    > and write the result to a local file. On one server (an in-house
    > built Linux), it is running perfect. However, on another server
    > (RH 9), it's hehavior is very strange: it will stop at a phone number
    > between the 900th to 1000th without any error message. Looks
    > like it stops naturally, but this is not a natural end. It is supposed
    > to stop after the last phone number was checked.
    > I am thinking it might be the case that the script received a stop
    > signal from the system. - I have no idea, but just guess. I am not
    > a UNIX people. I think in this group maybe someone can give
    > me a hand. Thanks in advance!
    >
    > Alex
    >
    >
    I have seen a /bin/tcsh login shell that sets
    autologout 60
    and then logs out after 60 CPU seconds.
    If this is the case with your login shell, the fix is:
    unset autologout

    --
    Michael Tosch
    IT Specialist
    HP Managed Services Germany
    Phone: +49 2407 575 313
    Mail: michael.tosch:hp.com


    Michael Tosch Guest

  3. #3

    Default Re: A script stops halfway before the supposed natural end without any error/warning message

    > In article <T0bLc.9103$x34.3596nntp-post.primus.ca>, "Alex Shi"
    <chpshistonix.com> writes:
    > > Hi All,
    > >
    > > I have a php script running on shell. Basically it checks more
    > > than 10k phone numbers one by one in a loop way. It will send
    > > each of the numbers to a remote host for validation checking,
    > > and write the result to a local file. On one server (an in-house
    > > built Linux), it is running perfect. However, on another server
    > > (RH 9), it's hehavior is very strange: it will stop at a phone number
    > > between the 900th to 1000th without any error message. Looks
    > > like it stops naturally, but this is not a natural end. It is supposed
    > > to stop after the last phone number was checked.
    > > I am thinking it might be the case that the script received a stop
    > > signal from the system. - I have no idea, but just guess. I am not
    > > a UNIX people. I think in this group maybe someone can give
    > > me a hand. Thanks in advance!
    > >
    > > Alex
    > >
    > >
    >
    > I have seen a /bin/tcsh login shell that sets
    > autologout 60
    > and then logs out after 60 CPU seconds.
    > If this is the case with your login shell, the fix is:
    > unset autologout
    >
    > --
    > Michael Tosch
    > IT Specialist
    > HP Managed Services Germany
    > Phone: +49 2407 575 313
    > Mail: michael.tosch:hp.com
    >
    >
    The login session won't be closed but just the script stops.

    Alex

    Alex Shi Guest

  4. #4

    Default Re: A script stops halfway before the supposed natural end without any error/warning message

    "Alex Shi" <chpshistonix.com> wrote in message news:<UibLc.9133$lf4.3122nntp-post.primus.ca>...
    > > In article <T0bLc.9103$x34.3596nntp-post.primus.ca>, "Alex Shi"
    > <chpshistonix.com> writes:
    > > > Hi All,
    > > >
    > > > I have a php script running on shell. Basically it checks more
    > > > than 10k phone numbers one by one in a loop way. It will send
    > > > each of the numbers to a remote host for validation checking,
    > > > and write the result to a local file. On one server (an in-house
    > > > built Linux), it is running perfect. However, on another server
    > > > (RH 9), it's hehavior is very strange: it will stop at a phone number
    > > > between the 900th to 1000th without any error message. Looks
    > > > like it stops naturally, but this is not a natural end. It is supposed
    > > > to stop after the last phone number was checked.
    > > > I am thinking it might be the case that the script received a stop
    > > > signal from the system. - I have no idea, but just guess. I am not
    > > > a UNIX people. I think in this group maybe someone can give
    > > > me a hand. Thanks in advance!
    > > >
    > > > Alex
    > > >
    > > >
    > >
    > > I have seen a /bin/tcsh login shell that sets
    > > autologout 60
    > > and then logs out after 60 CPU seconds.
    > > If this is the case with your login shell, the fix is:
    > > unset autologout
    > >
    > > --
    > > Michael Tosch
    > > IT Specialist
    > > HP Managed Services Germany
    > > Phone: +49 2407 575 313
    > > Mail: michael.tosch:hp.com
    > >
    > >
    >
    > The login session won't be closed but just the script stops.
    >
    > Alex
    This does sound like the script is hitting a resource limit. Do
    ulimit -a *in the exact environments that the script is running in*
    and see how it differs from one system to the other.

    But foremost, you defnitely should be capturing and reporting the exit
    status of the script's process. If that doesn't provide a clue,
    instrument the script with output statements to some log file ("Now
    I'm at step A..."). If it's a resource limit such as cpu, the
    instrumented script may die at a different point than the normal one;
    if it's a data error or system environment problem, or some array is
    hitting a memory size limit, it'll die at the same place.

    Chip C
    Toronto
    Chip C Guest

  5. #5

    Default Re: A script stops halfway before the supposed natural end withoutany error/warning message

    On 2004-07-20 18:03, Alex Shi wrote:
    >>In article <T0bLc.9103$x34.3596nntp-post.primus.ca>, "Alex Shi"
    >
    > <chpshistonix.com> writes:
    >
    >>>Hi All,
    >>>
    >>>I have a php script running on shell. Basically it checks more
    >>>than 10k phone numbers one by one in a loop way. It will send
    >>>each of the numbers to a remote host for validation checking,
    >>>and write the result to a local file. On one server (an in-house
    >>>built Linux), it is running perfect. However, on another server
    >>>(RH 9), it's hehavior is very strange: it will stop at a phone number
    >>>between the 900th to 1000th without any error message. Looks
    >>>like it stops naturally, but this is not a natural end. It is supposed
    >>>to stop after the last phone number was checked.
    >>>I am thinking it might be the case that the script received a stop
    >>>signal from the system. - I have no idea, but just guess. I am not
    >>>a UNIX people. I think in this group maybe someone can give
    >>>me a hand. Thanks in advance!
    >>>
    >>>Alex
    >>>
    >>>
    >>
    >>I have seen a /bin/tcsh login shell that sets
    >>autologout 60
    >>and then logs out after 60 CPU seconds.
    >>If this is the case with your login shell, the fix is:
    >>unset autologout
    >>
    >>--
    >>Michael Tosch
    >>IT Specialist
    >>HP Managed Services Germany
    >>Phone: +49 2407 575 313
    >>Mail: michael.tosch:hp.com
    >>
    >>
    >
    >
    > The login session won't be closed but just the script stops.
    >
    > Alex
    >
    Check the section:
    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;

    in /etc/php.ini

    ex:

    max_execution_time = 30 ; Maximum execution time of each script, in seconds
    max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
    memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)


    /bb
    Birger Blixt Guest

Similar Threads

  1. ActivePerl error message? Router script. Please help.Newbie
    By wrreisen2@yahoo.com in forum PERL Modules
    Replies: 28
    Last Post: May 29th, 12:06 PM
  2. a script stop without any error message
    By Alex Shi in forum Linux / Unix Administration
    Replies: 1
    Last Post: July 22nd, 04:21 PM
  3. Mysterious Script Stops When Getting Files
    By Eric Walker in forum PHP Development
    Replies: 6
    Last Post: September 4th, 01:56 AM
  4. Help with Warning Message please
    By William R Neill in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 10
    Last Post: August 24th, 05:24 PM
  5. Warning Message
    By Johnny Lui in forum Adobe Photoshop Elements
    Replies: 11
    Last Post: August 12th, 02:42 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