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

Re: Passing CGI environment to subprograms

2003-01-15 Thread Erich Oliphant
Thanks for the reply, just getting back from a short vacation... My test programs: first.pl --- #!/export/home/eoliphan/gnu/bin/perl -w use strict; my $key; open(LOG,"> /tmp/firstdebug.log"); foreach $key (keys %ENV) { print LOG "$key = $ENV{$key} \n"; } `/export/home/eoliphan/gnu/cgi-bin/du

Re: Passing CGI environment to subprograms

2003-01-08 Thread Erich Oliphant
am. I pasted in the read_data() func from the example and I have a single scalar accepting the return value from spawn_proc_prog() per the example and that is supposed to give me the output filehandle. Any suggestions? - Original Message - From: "Erich Oliphant" <[EMAIL PROTE

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 fo

Re: Where do you specify APR::HOOK...

2002-11-19 Thread Erich Oliphant
Ok, thanks now it makes sense ;) It's in the mp2 docs and it wasn't clear if it was not implemeted or the docs were behind the code. Maybe you guys could stick a note on it or something. - Original Message - From: "Stas Bekman" <[EMAIL PROTECTED]> To: "Er

Repost: Where do you specify APR::HOOK... [mp 2.0]

2002-10-25 Thread Erich Oliphant
Hello all, I assume from the lack of response that this is a dumb question :) However, I've still not been able to figure it out. Any help would be greatly appreciated. - Original Message - From: Erich Oliphant To: [EMAIL PROTECTED] Sent: Tuesday, October 22, 2002 11:59 AM Su

Where do you specify APR::HOOK...

2002-10-22 Thread Erich Oliphant
Hi, I am trying to place a handler at the end of the list of PerlLogHandler's.  I know I want to use APR::HOOK_REALLY_LAST but I'm not sure how or where to specify it for my handler.  I tried "PerlLogHandler My::Handler APR::HOOK_REALLY_LAST" in the httpd.conf file w/ no success.  Should it

Handler Access to vars created by other modules. (modperl 2.0)

2002-10-21 Thread Erich Oliphant
Hi, I am creating a handler that logs key (request) variables passed from our client application.  I need to tie the entries I create to entries in the apache request log.  I was thinking that I could use the UNIQUE_ID created by mod_unique_id (i.e. stick it in access_log and the log generat

Passing STDIN to subprogram

2000-09-06 Thread erich oliphant
I am replacing a CGI shell script with a modperl script. At one point in the shell script subprogram is called. The HTML form that calls the script calls it via a POST. As such the params are available via STDIN. The subprogram call (which I can't eliminate yet) expects to see the form par

PassEnv (passing everything)

2000-08-31 Thread erich oliphant
Hi, I am porting a shell script CGI to mod_perl. It uses a great many environment variables. I'm new to the project so figuring out which variables to pass is rather tedious. Does PassEnv support wildcards (PassEnv *) or some option to pass the entire parent environment?

Re: Problems loading POSIX module

2000-08-31 Thread erich oliphant
<[EMAIL PROTECTED]> >To: erich oliphant <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: Problems loading POSIX module >Date: Wed, 30 Aug 2000 20:32:46 +0100 (BST) > >On Wed, 30 Aug 2000, erich oliphant wrote: > > > Hi, > > I have a script that bom

Problems loading POSIX module

2000-08-30 Thread erich oliphant
Hi, I have a script that bombs under modperl when it tries to 'use POSIX'. I get the same message when I try to preload it in the httpd.conf. Here's the error: -- [Tue Aug 29 15:59:21 2000] [error] Can't load '/usr/local/lib/perl5/5.6.0/sun4-solaris/auto/POSIX/POSIX.so' for module POSIX: ld.