in reply to Perl CGI on WinXP - Dos 'bad file descriptor'
Any of these changes allow the program to run:delete $ENV{PATH}; # for taint mode open ( CMD, '/tools/usr/local/wbin/ls.exe / 2>res.txt |' ) || die $!; while ( <CMD> ) { print; } close ( CMD );
Yes, this last one is not good and I'm not sure what executable is being run from there or DLL being loaded. (strace for Windows?) Anyway, I know this isn't exactly your problem but maybe it will give you some ideas.$ENV{'PATH'} = 'C:/WINDOWS/system32;';
|
|---|