[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ubuntu 10.04 (getenv "HOSTNAME") does not work.
From: |
David Kastrup |
Subject: |
Re: ubuntu 10.04 (getenv "HOSTNAME") does not work. |
Date: |
Wed, 08 Dec 2010 15:26:40 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
mafeusek@gmail.com writes:
> Hallo Group Members.
>
> (getenv "HOSTNAME") returns nil,
> while
>
> bash$ echo $HOSTNAME
>
> returns host name.
>
> weird!? :)
>
> have You got an idea why??
man bash
[...]
HOSTNAME
Automatically set to the name of the current host.
[...]
It is not exported by default.
--
David Kastrup
- Re: ubuntu 10.04 (getenv "HOSTNAME") does not work.,
David Kastrup <=