Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Exception from perl

by Anonymous Monk
on Jan 04, 2012 at 08:12 UTC ( [id://946207]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Exception from perl
in thread Exception from perl

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

Replies are listed 'Best First'.
Re^4: Exception from perl
by AnnShinoy (Novice) on Jan 05, 2012 at 06:58 UTC
    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);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://946207]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-24 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found