I am running Apache 2.2 (running through the console) in Vista. I have a simple batch of script in cgi-bin. Unfortunately, Apache doesn't seem to be serving content created by subprocesses.
For example, given the following script:
@echo off
echo Content-Type: text/html
echo.
echo Visible in browser
cmd /c echo Hidden from browser
echo End of script
All three lines of text will appear on the console if they are executed directly from the command line. However, the middle line ("Hidden from the browser") will not appear if running with Apache.
This script is just illustrative - I actually use a batch file to run several separate console applications (not cmd.exe)
What am I doing wrong?
source
share