Hi there,

On Fri, 27 Apr 2001, Philip Mak wrote:

> On Fri, 27 Apr 2001, Scott Alexander wrote:
> 
> > Should this work in a startup.pl file
> >
> > my $hostname = $ENV{"HOSTNAME"} ;
> > from the prompt I can write echo $HOSTNAME and get the correct hostname of the 
>server.
> > But from within startup.pl I don't get it.
> 
> Try this:
> 
> my $hostname = `/bin/hostname`;

Or better still:

http://perl.apache.org/guide

73,
Ged.

Reply via email to