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.
--
------------------------------------------------------------------------
Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/
.project: Perl, DBI, Oracle, MySQL, auth. WWW servers, MTB, Spain.
------------------------------------------------------------------------