On 8/2/05, Ram <[EMAIL PROTECTED]> wrote:
> 
> > > I tried
> > >
> > > exec("command");
> > > and also
> > > system("command &"); 
> > >
> > > Niether seemed to work, for the reason which I assume is, since it is a
> CGI
> > > script and webserver waits until this script exits and then displays the
> > > results to the browser. What was thought to be a simple thing is
> becoming a 
> > > huge problem.
> > 
> > What does it do exactly? Does it hang? What are the permissions on
> > this other perl script? Does the user the cgi script is running as
> > (presumably 'nobody') have permission to execute that script? 
> > 
> 
>  Yes the user cgi script is running have permissions to execute that
> script.......
>  
>  Infact with the above mentioned methods I am able to execute the script
> very well but my cgi script is waiting until it is getting finished, which I
> dont want. 
>  
>  I only want my cgi script to call the external perl script and exit. 

You're going to need to write a shell script that calls your program like so:

CGI:
system('/path/to/start_program.sh')

SH:
perl /path/to/perl_script.pl &

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to