SPUG: Bad file descriptor at .+ line \d+.

JD Brennan jazzdev at gmail.com
Wed May 24 11:37:22 PDT 2006


Anyone seen an error matching this pattern running a Perl CGI
on Windows 2003 with IIS 6.0?

Here's my simple test script: dir.pl

print "Content-type: text/plain\n\n";
open(CVS,"dir d:\\Inetpub\\wwwroot\\release_docs |") || die "Can't run dir: $!";
while (<CVS>) { print "$_"; }
close(CVS);

Here's the error I get:

Can't run dir: Bad file descriptor at D:\Inetpub\wwwroot\safe\bin\dir.pl line 2.

Script works on another Windows 2003 box with IIS 6.0.  I can't find how
I've got them configured differently.

Any ideas appreciated.

JD


More information about the spug-list mailing list