>Number: 5699 >Category: mod_include >Synopsis: Can't capture output of "external" programs with SSI >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Feb 03 23:10:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: [EMAIL PROTECTED] >Release: 1.3.9 >Organization: apache >Environment: WindowsNT 4.0 + SP5, binary Apache distribution >Description: With SSI, I can only capture the output of commands internal to the interpreter, CMD.EXE (or a couple of replacements I've tried: 4NT.EXE and 4NTRT.EXE). For example, this works nicely: <!--#exec cmd="echo hi" --> (likewise any command internal to the interpreter) but the following produces empty output (though the EXE does run): <!--#exec cmd="c:\\winnt\\system32\\netstat.exe" --> Similarly, I can run batch files, but if the batch file runs an external EXE, that EXE's output is lost. For example, if the batch file includes the command: "c:\winnt\system32\netstat.exe > v:\test.txt", netstat.exe does run and the output file, v:\test.txt is created, but it is empty. >How-To-Repeat: Try <!--#exec cmd="c:\\winnt\\system32\\netstat.exe" --> in a document under circumstances in which SSI's are enabled and expected to work. >Fix: If this problem arises because CMD.EXE runs as a DETACHED_PROCESS, perhaps starting it with CreateProcess() and SW_HIDE (instead) would help.
NOte: An option for a user-specified command interpreter for SSI's "#exec cmd=" would be nice (so we wouldn't be stuck with CMD.EXE). Please reply by email. Thank you. - Vince >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]