Click to See Complete Forum and Search --> : working another perl program background


rei
08-16-2004, 02:16 AM
i'm working on a CGI script, let's call it A script, where i needs to run another Perl background, let's call it B script.
B script will write the result to a HTML file, and it ended up as quite a big file.. (up to around 2MB.... :( )

A Script wont ends, unless B script ends.
How can i make is so that A script ends once it calls B script?
I shall then put a link to B script(A href= ***) to enable it it to see the result later on..

silent11
08-16-2004, 11:25 AM
Try fork();

http://www.perldoc.com/perl5.8.4/pod/func/fork.html