in reply to Exception from perl

The technique is outline in Watching long processes through CGI (Aug 02)

See also Proc::Background

Replies are listed 'Best First'.
Re^2: Exception from perl
by AnnShinoy (Novice) on Jan 03, 2012 at 09:15 UTC
    Even using a background process is not helping much. The IIS stops that too it seems. I have added the line my $proc1 = Proc::Background->new("java -jar......"); Can some one tell me that if this alone will invoke the background process and do I have to check for any other conditions? This IIS configuration is really irritating. Can we override this CGITimeout attribute? What is the purpose of this attribute?

      Even using a background process is not helping much. The IIS stops that too it seems.

      I don't believe it :)

      I have added the line my $proc1 = Proc::Background->new("java -jar......"); Can some one tell me that if this alone will invoke the background process and do I have to check for any other conditions?

      Why? Didn't it work when you tried it?

      This IIS configuration is really irritating. Can we override this CGITimeout attribute?

      Sure (but don't ask me how) :) it wouldn't be a configuration option otherwise, and it would be a spectacularly stupid webserver that didn't allow overriding configuation values

      What is the purpose of this attribute?

      to prevent runaway processes -- if it spending minutes doing something, 99/100 its a mistake

        Even though I am creating a background job, it is not doing its job (updating the DB with values from a Web service call). Can you advise on how can I make this foreground job (perl program that calls the java program) wait till the background job (to do the java job) completes? Sample code is like this require Proc::Background; my $cmd = "java -jar .....; my $proc1 = Proc::Background->new($cmd);