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

jerry gay jerry.gay at gmail.com
Wed May 24 12:01:10 PDT 2006


the error message points to line two of your script:
> open(CVS,"dir d:\\Inetpub\\wwwroot\\release_docs |") || die "Can't run dir: $!";

it seems a file named 'dir d:\\Inetpub\\wwwroot\\release_docs |' does not exist
~jerry

On 5/24/06, JD Brennan <jazzdev at gmail.com> wrote:
> 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
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
>      POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
>     MEETINGS: 3rd Tuesdays
>     WEB PAGE: http://seattleperl.org/
>


More information about the spug-list mailing list