Perl Monk, Perl Meditation | |
PerlMonks |
Why does fork/exec not work on Win NT 4.0 Server?by LupoX (Pilgrim) |
on Jul 23, 2001 at 20:00 UTC ( [id://99063]=perlquestion: print w/replies, xml ) | Need Help?? |
LupoX has asked for the wisdom of the Perl Monks concerning the following question:
Hi all!
I try to run "unzip" out of a cgi-script served by Apache under Win NT 4.0 Server. The same code worked fine with another istallation on Win NT 4.0 (not Server Edition) Now I always get the"Internal Server error" I try to run my cgi script. The perl interpreter does not say anything while running from dos box. I checked file permissions and Apache is running as Administrator. Help would be great!!! Perl Version 5.005_03 my $file = "bla.zip"; my $command = "p:/tools/wni/unzip.exe $myFile"; unless (defined ($pid = fork)) { print "No fork:$!\n"; } unless ($pid) { exec ($command) or print "exec $command not possible:$!"; exit; } waitpid ($pid, 0); Have a good time... Georg wrkvg@SoftwareAG.com
Back to
Seekers of Perl Wisdom
|
|