command will execute perl script and will run some Linux command like
lvcreate , dd_rescue and lvremove and some file write operations,
i thought that the command will run in background .
and so that i can load my browser with the message that its under
progress ,
but its not happening , my browser loads partially and waiting for the
process to get completed.
i don't want my browser to wait for that process to get completed ..
can any one advice me to solve this problem ,
Have you tried |++ toward the top of your program? It could be a
buffering problem, but that's only a guess.
1) You've got 2>&1 in the wrong position to send STDERR to /dev/null.
2) You forgot about STDIN still being connected to the CGI program.
3) You're using qx`` instead of system().
system 'perl command </dev/null >/dev/null 2>&1 &';
or
system 'setsid perl command </dev/null >/dev/null 2>&1 &';
-Joe