in reply to Re: Perl CGI on WinXP - Dos 'bad file descriptor'
in thread Perl CGI on WinXP - Dos 'bad file descriptor'

The command runs fine from the command line. To clarify, ANY command I place between backticks fails with "Bad file descriptor". Here's a simple example:

if(defined (my $temp = `cmd.exe /c date /t`)) {<br> print "TEMP = $temp\n";<br> } else {<br> die "Command failed: $!";<br> }</br>

From the command line this script correctly outputs the date, when running via CGI I get the aformentioned "Bad file descriptor".

IIS Version: 5.1
Perl Version: This is perl, v5.8.0 built for MSWin32-x86-multi-thread

Thanks again for your help with this!

MB