ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: exec and who am I cmd
Date Wed, 15 Dec 2004 14:52:36 GMT
Why not just use the user.name system property? You should be able to 
reference it via ${user.name}

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


"Steve S." <sms687@gmail.com> wrote on 12/15/2004 08:59:17 AM:

> I am trying to run the following:
> 
> <exec executable="/bin/sh" dir="/usr/local/tools/bin">
>     <arg line="test_script"/>
> </exec>
> 
> test_script tries to do something like:
> username=`who am i|awk '{print $1}'|tr "[a-z]" "[A-Z]"`
> where username is used as input for another script. I get the
> following error though:
> [exec] Must be attached to terminal for 'am I' option
> 
> This seems simple but am I missing something obvious?
> 
> Thanks,
> Steve
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message