in reply to Help required for CGI Script
in thread CGI Script Working fine from my command prompt but Shows Internal server error when called through browser
Since you are using "fatalsToBrowser", are you seeing any error messages? What do they say?
Your code only tries to print the first line of "/tmp/ac.txt" to the browser, but if the output begins with a blank line, that's all your program will send to the browser.
If the autostatus output contains angle brackets, then your browser will be trying to interpret it as HTML tags, and will probably not display any of it (because the data can't be parsed that way). In order to see the "autostatus" output presented, you may have to print a <pre> tag before printing the command output, and then print a </pre> tag afterwards.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Help required for CGI Script
by Anonymous Monk on Dec 28, 2012 at 07:46 UTC | |
by marto (Cardinal) on Dec 28, 2012 at 08:00 UTC | |
by Anonymous Monk on Dec 28, 2012 at 08:39 UTC | |
by marto (Cardinal) on Dec 28, 2012 at 08:48 UTC | |
by Anonymous Monk on Dec 28, 2012 at 07:50 UTC |