azzazzello
Technical User
Greetings,
I have several perl modules which rely on certain environment variables. Those variables can be set with one of the following scripts
It is undesirable to manually set environment variables - one must call one of those scripts to set them appropriately.
When I run perl scripts by hand - no problem. I write a bash wrapper that sets the system and runs the perl script.
I do not, however, have that luxury in a cgi script. Is there a way I can get to those environment-setting shell scripts from the cgi script? Because right now, I have a wrapper cgi script that, in backticks, sources the sh file and runs "perl -w script.pl" (in the same backticks). This is just ugly...is there a better way?
Thank you!
I have several perl modules which rely on certain environment variables. Those variables can be set with one of the following scripts
Code:
. /source/production_sys.sh
. /source/dev_sys.sh
. /source/another_sys.sh
It is undesirable to manually set environment variables - one must call one of those scripts to set them appropriately.
When I run perl scripts by hand - no problem. I write a bash wrapper that sets the system and runs the perl script.
I do not, however, have that luxury in a cgi script. Is there a way I can get to those environment-setting shell scripts from the cgi script? Because right now, I have a wrapper cgi script that, in backticks, sources the sh file and runs "perl -w script.pl" (in the same backticks). This is just ugly...is there a better way?
Thank you!