RE: 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've had weird issues using backticks on windows in general (in the past). As a habit, I've since used system() instead and I've had no problems with it. This could be a permissions issue as Peter said. You may also want to try this... open (P1, ping $host 21|) || die Cannot start ping\n; @ping1 = P1; close(P1); - Chris ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Backticks and IIS6.0
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 headtitleTest/title/head body pre end_html print `ping localhost`; print brError: $!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
RE: 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 headtitleTest/title/head body pre end_html print `ping localhost`; This is a guess but could it be that a web user does not have permission to ping, or possibly does not have ping in their Path? print brError: $!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
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 headtitleTest/title/head body pre end_html print `ping localhost`; print brError: $!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