On Tue, 30 May 2000, Honza Pazdziora wrote:

> On Tue, May 30, 2000 at 11:35:27AM +0100, Kees Vonk 7249 24549 wrote:
> > I have a question about perl sections, I have the need to 
> > build a httpd.conf file that can be run on more than one 
> > server, this means that I need to determine what the server 
> > name is (for the ServerName directive), I think I can do this 
> > by putting:
> > 
> > <Perl>
> >    $ServerName = `uname -n`;
> > </Perl>
> > 
> > but is it wise to put backticks in a Perl section (as 
> > backticks cause a fork) or is there an all perl solution for 
> 
> Module Sys::Hostname tries to get the name by a syscall before
> reverting to uname -n. You might want to give it a try.

Like Honza said, but there is no problem with forking at the startup, this
is not the fork during the request processing.


_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://perl.org     http://stason.org/TULARC
http://singlesheaven.com http://perlmonth.com http://sourcegarden.org

Reply via email to