in reply to How can I kill pid of parent and keep that of child alive
In your case I would do this:
This is much, much safer since the parameters for your script, $DirName, $maxSeqLen, etc. are coming directly from your CGI parameters.use IPC::Open2; my @cmd = ('/var/www/cgi-bin/nuScore/ProcessLongData.pl', $DirName, $maxSeqLen, $minSeqLen, $WindowSize, $Email); open(NULL, "+</dev/null"); my $pid = open2(">&NULL", "<&NULL", @cmd); ...
|
|---|