ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Inger <ma...@sedonacorp.com>
Subject Re: Process ID?
Date Mon, 27 Aug 2001 19:42:27 GMT
Jack Woehr wrote:

> Is there any way to use '$' in a value in Ant?
>
> I tried the following:
>
> <exec executable="sh" outputproperty="some.pid">
>   <arg value="-c"/>
>   <arg value="who -T | tail -1 | awk '{print $8}'"/>
>  </exec>
>
> But this just comes out '8' ... the $sign gets swallowed.
> I trie &#36; instead of $ with about the same results.
>
>-- 
>Jack J. Woehr     # "I never worry that all hell will break loose.
>Senior Consultant #  I worry that half hell will break loose, which
>Purematrix, Inc.  #  is much harder to detect." - George Carlin
>
>  

use '$$'


-- 
Matt Inger (matt.inger@sedonacorp.com)
Sedona Corporation
455 S. Gulph Road, Suite 300
King of Prussia, PA 19406
(484) 679-2213
"Self-respect - the secure feeling that no one,
 as yet, is suspicious." -H.L. Mencken 




Mime
View raw message