Fw: Passing CGI environment to subprograms

2003-01-16 Thread Erich Oliphant
- Original Message - From: Erich Oliphant [EMAIL PROTECTED] To: Stas Bekman [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 9:21 PM Subject: Re: Passing CGI environment to subprograms Duh :) Sorry, I thought I included the rev in my original post, yes I am using 2.0. Hmm

Re: Fw: Passing CGI environment to subprograms

2003-01-16 Thread Stas Bekman
Erich Oliphant wrote: - Original Message - From: Erich Oliphant [EMAIL PROTECTED] To: Stas Bekman [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 9:21 PM Subject: Re: Passing CGI environment to subprograms Duh :) Sorry, I thought I included the rev in my original post, yes I am

Re: Passing CGI environment to subprograms

2003-01-15 Thread Erich Oliphant
- From: Stas Bekman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 10:01 PM Subject: Re: Passing CGI environment to subprograms I don't see any reason why your `` invoked process doesn't see the CGI env vars. For example: #!/usr/bin/perl print

Re: Passing CGI environment to subprograms

2003-01-09 Thread Stas Bekman
I don't see any reason why your `` invoked process doesn't see the CGI env vars. For example: #!/usr/bin/perl print Content-type: text/plain\n\n; $ENV{'PATH'} = '/bin:/usr/bin'; delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; print qx{printenv |grep REMOTE_ADDR}; prints: REMOTE_ADDR=127.0.0.1

Passing CGI environment to subprograms

2003-01-08 Thread Erich Oliphant
Hi, I have a mod_perl script that exec's (via backticks) another program. This program actually needs the CGI enviroment variables to perform correctly (it's a proprietary program, it was actually called by shell CGI initially, this approach cuts our exec's in half until we get an alternative

Re: Passing CGI environment to subprograms

2003-01-08 Thread Erich Oliphant
PROTECTED] Sent: Wednesday, January 08, 2003 4:46 PM Subject: Passing CGI environment to subprograms Hi, I have a mod_perl script that exec's (via backticks) another program. This program actually needs the CGI enviroment variables to perform correctly (it's a proprietary program, it was actually