>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 PROTECTED]> 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.
>
>  In windows everything is fine. Ant sets the property  to the hostname in
>  windows. But in Linux it prints the hostname like "${env.COMPUTERNAME}".
>  Value is not printed.
>
>  Is COMPUTERNAME only for windows? Is there any workaround to print the
>  hostname(Linux)?
>
>  We don't make any changes in the ant script when running in Linux.
>
>  --
>  Thank you
>  Ramu S
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to