in reply to Re^4: Access system ENV variables from within CGI Script
in thread Access system ENV variables from within CGI Script
You do not seem to understand the shell programming going on there.
The line
echo env | bash --login
is used to run the env command in an instance of the bash shell running as login shell. It seems though as if your shell is the Korn shell (ksh), so you will either need to adapt Get default login environment to the shell actually used on your system, or use RE (tilly) 1: Get default login environment or RE (tilly) 3: Get default login environment or Re^2: RE (tilly) 3: Get default login environment, which all try to get the shell that is actually your login shell.
So, you need to do some understanding of the Perl program and the shell scripts and how they interact.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Access system ENV variables from within CGI Script
by Anonymous Monk on Oct 12, 2007 at 13:09 UTC | |
by Corion (Patriarch) on Oct 12, 2007 at 13:15 UTC |