[Starkit] Re: starpack as cgi
David Welton
davidnwelton at gmail.com
Wed Jun 22 15:19:30 CEST 2005
> So until that gets fixed, I guess a workaround is necessary if
> starpacks are to work as CGI's.
One ugly hack that would, however, work would be something like this:
set execname [info nameofexecutable]
if { $execname eq "" && [info exists ::env(SCRIPT_FILENAME)] } {
set execname $::env(SCRIPT_FILENAME)
}
I think that ought to work - here for instance, env(SCRIPT_FILENAME) =
/usr/lib/cgi-bin/prova.cgi.
It's kind of ugly, maybe there are better ways. Perhaps looking at
[pwd] + argv0 to see if that is an executable file?
--
David N. Welton
- http://www.dedasys.com/davidw/
Apache, Linux, Tcl Consulting
- http://www.dedasys.com/
More information about the Starkit
mailing list