6, 2008 2:53:25 PM
> Subject: Re: env.COMPUTERNAME not working in linux
>
>
> There
> really
> isn't
> a
> standard
> environment
> variable
> name
> for
> storing
> the
> system
> name
> on
> the
> various
> flavors
> of
> Unix
From: David Weintraub <[EMAIL PROTECTED]>
To: Ant Users List
Sent: Tuesday, February 26, 2008 2:53:25 PM
Subject: Re: env.COMPUTERNAME not working in linux
There
really
isn't
a
standard
environment
variable
name
for
storing
the
system
name
on
the
various
flavors
of
Unix
There really isn't a standard environment variable name for storing
the system name on the various flavors of Unix. This is usually set
when users log in. Some shells do set the environment variable
HOSTNAME, but not all. Even on Windows, the environment variable
COMPUTERNAME cannot be trusted beca
Hi,
Samuel Monsarrat wrote:
>> Is COMPUTERNAME only for windows? Is there any workaround to print the
>> hostname(Linux)?
>>
> Indeed yes COMPUTERNAME is a Windows standard env variable that does not
> exist on linux. env. is dangerous in a multi-os build system, as you
> are accessing the
Is COMPUTERNAME only for windows? Is there any workaround to print the
hostname(Linux)?
The end of that statement is misleading - are you looking for the hostname or
the host OS? Or is your machine named 'Linux'?
Vijay
Ramu Sethu wrote:
Hi
We have a build script which runs in both windows
Ramu Sethu wrote:
Hi
We have a build script which runs in both windows and Linux m/c. Recently i
added property to print the computer name of the m/c in which the script
runs.
Is COMPUTERNAME only for windows? Is there any workaround to print the
hostname(Linux)?
Indeed yes COMPUTERNAME is a
>From a console, run the command "env" to see the environment variables.
On unix/linux the env variable "HOSTNAME" is normally used to get the
name of the computer.
(Although on my current machine this is "localhost.localdomain").
Peter
On Tue, Feb 26, 2008 at 2:09 PM, Ramu Sethu <[EMAIL PROTEC
Hi
We have a build script which runs in both windows and Linux m/c. Recently i
added property to print the computer name of the m/c in which the script
runs.
In windows everything is fine. Ant sets the property to the hostname in
windows. But in Linux it prints the hostname like "${env.COMPUTERN