Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 11541 invoked by uid 500); 27 Aug 2001 19:13:09 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 11515 invoked from network); 27 Aug 2001 19:13:09 -0000 Sender: jax@purematrix.com Message-ID: <3B8A9B83.EB5B37D8@purematrix.com> Date: Mon, 27 Aug 2001 13:12:03 -0600 From: Jack Woehr Organization: PureMatrix X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: ANT User Mailing List Subject: Process ID? Content-Type: multipart/alternative; boundary="------------B82490145F559539B2F9BB37" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------B82490145F559539B2F9BB37 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Is there any way to use '$' in a value in Ant? I tried the following: But this just comes out '8' ... the $sign gets swallowed. I trie $ 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 --------------B82490145F559539B2F9BB37 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit 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
  --------------B82490145F559539B2F9BB37--