Thanks to all who relied.  It turned out to be a permissions issue.  I'm
running anonymous IIS has a domain user rather that the default
iis_machinename.  When I added the domain user to the local admin group
it worked.  Since that's a really bad idea I have to go through the
local security policy to make it work. 


Mark Edwards 
HP Services     
Technical Solutions Group       
Voice: (719) 592-5363

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Edwards, Mark (CXO)
Sent: Wednesday, November 15, 2006 11:03 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Backticks and IIS6.0

I'm moving from Windows 2000 (IIS 5) to Windows Server 2003 (IIS6).  I'm
unable to capture the output of a program using backticks in a CGI
script.  I tried v5.6.1 build 631 and v5.8.8 build 819 with the same
results.  Below is a trivial CGI script as an example.

use CGI ':standard';
print header();
print << "end_html";
<html>
  <head><title>Test</title></head>
  <body>
    <pre>
end_html
print `ping localhost`;
print "<br>Error: $!<br>\n";
print << "end_html";
    </pre>
  </body>
</html>
end_html
;

Under IIS5 it displays the output of ping as expected and no error ($!).
Under IIS6 there is no output except for "Error: Bad file descriptor".
 

Mark Edwards 
HP Services     
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>     

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to