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

Perl Command Prompt while executing perl script through cgi

by bhikshu (Initiate)
on Sep 25, 2013 at 05:32 UTC ( #1055608=perlquestion: print w/ replies, xml ) Need Help??
bhikshu has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I have set up a web page under IIS 7 which calls a perl cgi script.

This perl cgi launches another perl script using backticks.

Whenever this second script is launched and if web page is being accessed from same server where IIS is installed, a command prompt is displayed with it's title being E:\Perl\bin\perl.exe which is where I have installed perl.

Is there a way to hide this window and let the execution of second script be done as a background process?

Thanks in advance for your help!

Comment on Perl Command Prompt while executing perl script through cgi
Re: Perl Command Prompt while executing perl script through cgi
by Anonymous Monk on Sep 25, 2013 at 06:13 UTC

    Hi,

    Why are you calling a Perl script from a perl script?

    Ectract the workings of the second script and put them into the CGI script as a subroutine.

    J.C.

      Because the inner process could theoretically die, and you don't want the outer process to die too, and/or you don't want to worry about spill-over from one instance of the inner process to the next (even if it's just memory usage). I have one client that does long, complicated data imports, and I use a master script to call scripts that process individual data sets. So it's not necessarily a bad approach.
Re: Perl Command Prompt while executing perl script through cgi ( hide command prompt )
by Anonymous Monk on Sep 25, 2013 at 07:08 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1055608]
Approved by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2014-04-18 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (461 votes), past polls