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.
- Environment variables in startup.pl Scott Alexander
- Re: Environment variables in startup.pl Philip Mak
- Re: Environment variables in startup.pl G.W. Haywood
- Re: Environment variables in startup.pl darren chamberlain
