Easy way to access PerlSetEnv from outside apache cycle?
Hi all. I will try to be as clear as i can with a potentially vague problem. I am just starting to maintain and implement some mod_perl code written by a long gone coder. The mod perl code itself seems to be working just fine. But a command line script was written to also utilize a database module core to the mod_perl code. Inside this db module is one subroutine called 'handler' (of course). So in his command line script we see something like: use DBModule; DBModule::handler(); and the syntax of all that seems to be correct. The problem arises in the fact that handler() fills in some fairly essential blanks in the DB connect with variables set in a mod_perl conf file using PerlSetEnv's. So when run from the command line, those variables are undefined. I dont see an easy way to tell this script how to access that environmentspace, nor an easy way to stick the script into the modperl env as it takes a command line parameter which will require human intervention. Is there any easy way to let this command line script patch into the variablespace created by the PerlSetEnv's? Did the original designer see something over my head or was he/she on mod_crack? -- gedanken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Easy way to access PerlSetEnv from outside apache cycle?
> -Original Message- > From: Gedanken [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 01, 2000 3:46 PM > To: [EMAIL PROTECTED] > Subject: Easy way to access PerlSetEnv from outside apache cycle? > > > [snip] > > Is there any easy way to let this command line script patch into the > variablespace created by the PerlSetEnv's? PerlSetEnv just sets environment variables, which you can access as normal environment variables in your handler... thus, just export what you need in your shell or tack stuff onto %ENV --Geoff Did the original > designer see > something over my head or was he/she on mod_crack? > > -- > gedanken > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]