in reply to Missing new-lines, when script executed in a CGI
As for your main program, there should be two new lines after the content-type line, there should not be a space in front of the colon, nor should there be a space after the content type. Furthermore, line 4 seems to be missing a leading / in the path. And print `command` is a bit silly - it's saying "execute command, slurp in its output, then print it". Why not just execute the command? Whatever it outputs will be on your output. Oh, and Line 4 is missing a trailing semi-colon. And I do hope the "Line N :" thingies aren't there in reality - labels cannot contain spaces.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Missing new-lines, when script executed in a CGI
by LinuxUser2008 (Acolyte) on May 11, 2010 at 15:40 UTC | |
by JavaFan (Canon) on May 11, 2010 at 22:20 UTC |