K
Krishna
Hi -
I am using 'fork' to execute a child process (a perl program) in my
CGI.
When the user submits the page, I am displaying a status page (created
by a CGI)
and forking the my external process. However spawning of this external
process is redisplaying the the status page below the original page
(means I am getting
a TILED page of my status page).
$pid = fork;
if ($pid)
{ return 1; }
else {
close STDOUT;
exec "/usr/local/bin/perl /../../push.pl ";
exit 1;
}
Why its happenning like that?
Thanks
I am using 'fork' to execute a child process (a perl program) in my
CGI.
When the user submits the page, I am displaying a status page (created
by a CGI)
and forking the my external process. However spawning of this external
process is redisplaying the the status page below the original page
(means I am getting
a TILED page of my status page).
$pid = fork;
if ($pid)
{ return 1; }
else {
close STDOUT;
exec "/usr/local/bin/perl /../../push.pl ";
exit 1;
}
Why its happenning like that?
Thanks