Re: exec and who am I cmd

2004-12-15 Thread Steve S.
Jeffery, Thanks. Yeah I changed to use: username=`echo $USER|awk '{print $1}'|tr "[a-z]" "[A-Z]"` and that seemed to work. Thanks for the help. Steve On Wed, 15 Dec 2004 09:52:36 -0500, Jeffrey E Care <[EMAIL PROTECTED]> wrote: > Why not just use the user.name system property? You should be a

Re: exec and who am I cmd

2004-12-15 Thread Jeffrey E Care
Why not just use the user.name system property? You should be able to reference it via ${user.name} -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis "Steve S." <[EMAIL PROTECTED]> w

Re: exec and who am I cmd

2004-12-15 Thread Conor MacNeill
It should be whoami - i.e. no spaces Steve S. wrote: I am trying to run the following: 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

exec and who am I cmd

2004-12-15 Thread Steve S.
I am trying to run the following: 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 b