> I like the idea of using LWP to get config info, but what if the server is
> down?

What? Your server can be found in down state? :)

> I guess you could do a httpd -X, or is there another way?

There are many ways to do that. See the watchdog section in the guide...

> 
> Thanks, Cliff 
> 
> -----Original Message-----
> From: Stas Bekman
> To: Clifford Lang
> Cc: [EMAIL PROTECTED]
> Sent: 2/10/00 5:59 AM
> Subject: Re: How can I share mod_perl config info with shell perl processes?
> 
> > I have data I need access to via WEB or filesystem. or more correctly
> with
> > email.  Since the data lives in Web server territory, my
> Apache/mod_perl
> > configuration files know where everything is -
> > 
> > What I think I would like to do, is when the mail process starts up,
> I'd
> > like to reach inside of apache and pull configuration data right out
> from
> > the active server.  Is this possible?  I know I can dump config data
> from
> > between <PERL></PERL> blocks, but I believe that is static at startup.
> I'd
> > like to take advantage of the Active servers memory cache if I could -
> some
> > how access the same memory pool - check whos on-line and such.
> > 
> > I'm I going places I should?  If not could someone point me in the
> right
> > direction?
> 
> Take a look at Apache::Scoreboard it knows to fetch the scoreboard info
> from remote server. I guess in the same fashion you can write a module
> to
> connect and retrieve other data as well.
> 
> But wait, why not to write a script/handler that will deliver all the
> required data on request? Use LWP for retrieval and Storable or/and
> Data::Dumper for easy serialization and later restore.
> 
> _______________________________________________________________________
> Stas Bekman    mailto:[EMAIL PROTECTED]      http://www.stason.org/stas
> Perl,CGI,Apache,Linux,Web,Java,PC     http://www.stason.org/stas/TULARC
> perl.apache.org    modperl.sourcegarden.org   perlmonth.com    perl.org
> single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com
> 



_______________________________________________________________________
Stas Bekman    mailto:[EMAIL PROTECTED]      http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC     http://www.stason.org/stas/TULARC
perl.apache.org    modperl.sourcegarden.org   perlmonth.com    perl.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com

Reply via email to