It should be whoami - i.e. no spaces

Steve S. wrote:
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?


Conor

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to