Re: Loop aborts on web server



On May 13, 1:26 pm, "Emil Horowitz" <i...@xxxxxxx> wrote:
On May 13, 9:20 am, "Emil Horowitz" <i...@xxxxxxx> wrote:
Hi,

I have noticed that a large For loop (10,000 to 20,000 loops) aborts
after
about 500 to 600 loops and terminates script execution when running on
the
web server of my ISP. On my local host, the complete loop runs without
problems. Any idea about this?

Thanks, Emil

Web servers put a time limit on CGIs. Does your
server allow you to fork a long-running process?

I am afraid that a time limit is not the reason for the problem. I made this
test: I put a one second's "sleep" into each loop, extending the runtime of
the script many times over. Still the script aborts after about 500 loops,
as before without the "sleep" command. Any ideas?

Emil

Is it creating a large data structure on each loop?
.



Relevant Pages

  • Expect looking for a loop of some kind.
    ... must make a very similar script except now I must make it available ... while statement or a loop of some kind so that it will continue ...
    (comp.lang.tcl)
  • Re: Report in FM 6 or 7
    ... achieve this report format will have to be done via scripting. ... but they will simplify the script and Sort Order. ... End Loop ... The normal 'Dancer' field is used so that if there are more than one ...
    (comp.databases.filemaker)
  • Re: recreate database script not work
    ... I got a script which is supposed to regenerate database systax. ... REM gen_dbse_9.sql ... end loop; ...
    (comp.databases.oracle.server)
  • RE: Change of set display name
    ... Just missed it in the script... ... > for each objUser in objOU 'Loop through all OBJECTS in referenced OU ... > When you are unable to keep your eyes open, do go and sleep for few hours!!! ... >> I need something that will go to a specific OU and set the Display Name ...
    (microsoft.public.windows.server.scripting)
  • Re: How to Write an Infinite Loop that doesnt Die when Program Dies
    ... is a simpler way to start an infinite loop. ... Unfortunately, every time my web server dies, this script dies. ...
    (comp.unix.shell)