ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: Hostname in ant
Date Tue, 24 Aug 2004 21:31:27 GMT
Use the exec task, command hostname, and use the outputproperty 
attribute to capture what goes on stdout
Cheers,
Antoine



Gera, Prateek wrote:

>Hi,
>  How can I get the hostname OR IP adress of a unix system that ant runs
>on. The environment variable HOSTNAME is not set, as may be on some unix
>systems.
>
>Thanks
>./pr
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message