Ask a Question related to Linux / Unix Administration, Design and Development.
-
Alex Shi #1
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
-
ActivePerl error message? Router script. Please help.Newbie
Hi, I have installed ActivePerl on Windows XP SP2 professional and have tried running a script to restart my router: it always gives out this... -
a script stop without any error message
Hi All, I have a php script. It checks more 10k phone numbers, for each of the numbers it will send the it to a remote host for validation and... -
Mysterious Script Stops When Getting Files
I am a php beginner, so apologize if this question is silly. I am encountering apparently random script stops when I try to get a remote HTML... -
Help with Warning Message please
I have to tell someone - Photoshop has to be the worst piece of Software in my computer as far as User Friendly goes... It's not going back in it's... -
Warning Message
Hi Everyone, I'll explain what I'm doing first. At the moment, I am doing a record search via a form. I like to know if it's possible to display... -
Michael Tosch #2
Re: A script stops halfway before the supposed natural end without any error/warning message
In article <T0bLc.9103$x34.3596@nntp-post.primus.ca>, "Alex Shi" <chpshi@stonix.com> writes:
I have seen a /bin/tcsh login shell that sets> 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
>
>
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
-
Alex Shi #3
Re: A script stops halfway before the supposed natural end without any error/warning message
> In article <T0bLc.9103$x34.3596@nntp-post.primus.ca>, "Alex Shi"
<chpshi@stonix.com> writes:The login session won't be closed but just the script stops.>> > 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
>
>
Alex
Alex Shi Guest
-
Chip C #4
Re: A script stops halfway before the supposed natural end without any error/warning message
"Alex Shi" <chpshi@stonix.com> wrote in message news:<UibLc.9133$lf4.3122@nntp-post.primus.ca>...
This does sound like the script is hitting a resource limit. Do> <chpshi@stonix.com> writes:> > In article <T0bLc.9103$x34.3596@nntp-post.primus.ca>, "Alex Shi">> >> > > 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
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
-
Birger Blixt #5
Re: A script stops halfway before the supposed natural end withoutany error/warning message
On 2004-07-20 18:03, Alex Shi wrote:
Check the section:>>>In article <T0bLc.9103$x34.3596@nntp-post.primus.ca>, "Alex Shi"
> <chpshi@stonix.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
>
;;;;;;;;;;;;;;;;;;;
; 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



Reply With Quote

