Strange csh script error with apache cgi
Hi, this question is for any cgi/csh gurus here.
Couple of weeks ago I setup my first Apache server ( 1.3.9 ) on
Solaris 2.6 platform. It was a really a breeze to get my first html
web page going.
Now I am trying to make some of my previously written csh scripts
available for execution on the web page. Have configured the apache
for CGI. The simple sh/ksh scripts seem to work fine. But my trial csh
( c shell ) scripts gave "mis-configuration" error messages. The
error log said "bad header" to few echo command strings in the csh
script. By hit and trial, I was able to fix this error by adding an
extra line of ,echo "" ,before every echo command string.
Does anyone know if all functional csh scripts should execute with
apache cgi by placing them under cgi-bin directory without any
modifications to the csh scripts?
Also, if I execute a csh script successfully and output is displayed
on web page, is there a way to place a URL on the script output page
to take user back to home html page ?
Your help is greatly appreciated.