Re: firing an external program and exiting

2005-08-03 Thread Ram
> > Let's try this again :) You were most of the way there the first time, > and the shell script thing I suggested is unnecessary. > > system("command >/dev/null &"); # works for me > > Specifically: > > sleep.pl: > #!/usr/bin/perl > $|++; > print STDERR time." start of sleep\n"; > sleep(5); >

Re: firing an external program and exiting

2005-08-03 Thread Dave Gray
On 8/2/05, Ram <[EMAIL PROTECTED]> wrote: > I have a situation where a CGI script has to start an independent perl > script and exit without capturing the output or waiting for the exit code. > It doesnt make any practicle sense to me as this perl script takes good 6 > hours to run and my CGI scrip

Re: firing an external program and exiting

2005-08-02 Thread Ram
> > > > 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 c

Re: firing an external program and exiting

2005-08-02 Thread Dave Gray
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

Re: firing an external program and exiting

2005-08-02 Thread Dave Gray
On 8/2/05, Ram <[EMAIL PROTECTED]> wrote: > I have a situation where a CGI script has to start an independent perl > script and exit without capturing the output or waiting for the exit code. > It doesnt make any practicle sense to me as this perl script takes good 6 > hours to run and my CGI scrip