Date: Sun, 2 Feb 1997 12:46:58 +1000 (EST) From: Robert Chalmers <robert@nanguo.chalmers.com.au> To: freebsd-questions@freebsd.org (bsd) Subject: apache and cgi's Message-ID: <199702020246.MAA00628@nanguo.chalmers.com.au>
next in thread | raw e-mail | index | archive | help
Hi, I'm having trouble getting a shell script (sh) file to run under FreeBSD's Apache. It worked fine under NSCA though??? Is it a permissions, or what problem? This is the output to the error_log of the program in cgi-bin, that calls a bunch of other stuff? Perhaps it can no longer do that? If I run it form the command line, as user www, it works fine and does what it should, but called from the html file, it now does this? any clues anyone. Robert ------------------the program #! /bin/sh -x # # %W% (Berkeley) %E% # cd /usr/games/lib/ching.d PATH=.:$PATH case $1 in [6-9]*) H=$1;shift;; esac if test $H then phx $H | nroff $* macros - | more -s else cno > "/tmp/#$$" echo " " phx `cat "/tmp/#$$"` | nroff $* macros - | more -s rm "/tmp/#$$" fi ---------------- the output on apache. + PATH=.:/sbin:/bin:/usr/sbin:/usr/bin + test + cno + echo [Sun Feb 2 12:39:00 1997] access to /usr/local/etc/httpd/cgi-bin/ching failed for carbon.chalmers.com.au, reason: malformed header from script. Bad header= + cat /tmp/#595 + nroff macros - + more -s + phx 777697 + rm /tmp/#595 -- chalmers.com.au: P.O. Box 2003. Mackay. 4740 +61-0412-079025 robert@chalmers.com.au for Whirled Peas http://www.chalmers.com.au Location: The Great Australian Content Site. 21'7" S, 149'14" E.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702020246.MAA00628>