PRB: Server Side Include #exec Directive and Console Handle ProblemsID: Q226518
|
The Server Side Include (SSI) capability of Internet Information Server (IIS) provides support for the #exec directive to launch applications whose output will be included in the SSI file's output. However, there may be issues with how the stdio handles work for certain applications. For instance, by default the following line will create the output file c:\out1.txt but it will be empty.
<!-- #exec cmd="cmd /c ping localhost > c:\out1.txt" -->
The same infrastructure that launches CGI applications for IIS is used to launch commands for the #exec directive in SSI scripts. By default these processes are not launched with a console. Therefore there are issues that arise when console handles are assumed to exist as in the case above.
Here are two possible work arounds:
This behavior is by design.
For additional information about configuring IIS to run CGI applications in a new console, please see the following article in the Microsoft Knowledge Base:
Q190002 CGI and Perl Applications Do Not Run in a New Console
Q194948 HOWTO: Create a Child Console Process from a CGI Process
Additional query words: stm, shtm, shtml
Keywords : kbGrpInetServer
Version : winnt:3.0,4.0
Platform : winnt
Issue type : kbprb
Last Reviewed: April 19, 1999