Re: [tkined] Running sbrowser.cgi

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Mon, 8 Feb 1999 10:31:35 +0100

>>>>> Anthony Perry writes:

Anthony> I am trying to get sbrowser.cgi to work as a web/cgi call and
Anthony> it's not working. The interesting bit is, that as the web
Anthony> server user, I can run the script and get the desired
Anthony> results. When I run the cgi from the web server I trap the
Anthony> following error:

Anthony> [05/Feb/1999:17:06:13] failure: for host 155.64.50.193 trying
Anthony> to GET = /mib/sbrows er.cgi, cgi-parse-output reports: the
Anthony> CGI program = /opt/data/www-content/mib/sbro wser.cgi did not
Anthony> produce a valid header (name without value: got line =
Anthony> "couldn't find home environment variable to expand path")

Anthony> Can anyone shed some light on this problem?

Tcl fails to expand ~ to a home directory and hence it generates an
error message where the CGI interface expects a header line. To get
around this problem, you need to pass the scotty process a $HOME
environment variable. (How you do this usually depends on your Web
server configuration.)
Juergen

-- 
Juergen Schoenwaelder  schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany.        (Tel. +49 531 / 391 3289)
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.