Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Perl Command Prompt while executing perl script through cgi

by Anonymous Monk
on Sep 25, 2013 at 06:13 UTC ( #1055616=note: print w/ replies, xml ) Need Help??


in reply to Perl Command Prompt while executing perl script through cgi

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.


Comment on Re: Perl Command Prompt while executing perl script through cgi
Replies are listed 'Best First'.
Re^2: Perl Command Prompt while executing perl script through cgi
by TJPride (Pilgrim) on Sep 25, 2013 at 20:02 UTC
    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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2015-07-31 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls