A much simpler solution is to use the following as your CGI script:
#!/bin/sh --login exec /path/to/real/script.cgi $@
Untested.
In reply to Re: Access system ENV variables from within CGI Script
by ikegami
in thread Access system ENV variables from within CGI Script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |