Are you running this under the ISAPI perl filter [PerlIS.dll] or do you
have IIS configured to run the perl interpreter [perl.exe] when this
script is requested? If you're using ISAPI perl filter -- system() and
backticks are *NOT* supported.
Levy, Kevin @ TW wrote:
> I'm trying to port over some cgi scripts to an Windows 2003/IIS 6.0
> server that were running under Solaris 8/Apache 1.3.27 and I'm having
> problems with some of the scripts (specifically with file creation).
> The scripts that seem to fail are using "system" commands such as in
> the script below. Does anyone know why this would fail? I don't
> receive any errors when the script is run, however the output file is
> never created. The same scripts run fine when they are run from a
> Windows command prompt.
>
> #! perl -w
>
> print "Content-Type: text/html\n\n";
> print "<HTML>\n";
> print "<HEAD>\n";
> print "<TITLE>Test Script</TITLE>\n";
> print "</HEAD>\n";
> print "<BODY>\n";
>
> $data_file = "../../tmp/obs_data.txt";
> $temp_file = "../../tmp/obs_data3";
> system `sort -t~ $data_file > $temp_file`;
> print "<H5>Script Completed!</H5>\n";
> print "</BODY>\n";
> print "</HTML>\n";
>
>
>
>
> Thanks,
> Kevin
>
>
> __________________________________________________
>
> This message and any attachments are solely for the use of the
> individual or entity to which it is addressed and may contain
> information that is privileged or confidential. If you are not the
> intended recipient, any disclosure, use or distribution of the
> information contained herein is prohibited. If you have received this
> communication in error, please notify the sender by reply e-mail and
> immediately delete this message and any attachments.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>ActivePerl mailing list
>[email protected]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs