El dom, 14-09-2008 a las 12:53 +1000, Alex Samad escribió:
> On Sat, Sep 13, 2008 at 04:13:27PM -0600, Telly Williams wrote:
> > Hi,
> >
> > Here's my script:
> >
> > #!/bin/sh
> >
> > su -m -c "echo User: $(whoami)" user1
>
> isn't this $(whoami) being executed in the original /bin/sh to e
>isn't this $(whoami) being executed in the original /bin/sh to executre
>it under the su wouldn't you need something like
>
>\$(whoami)
Well, it worked, escaping it like that. Thanks for the reply!
Also, sorry about placing this under a previous list message.
--
VR ~
On Sat, Sep 13, 2008 at 04:13:27PM -0600, Telly Williams wrote:
> Hi,
>
> Here's my script:
>
> #!/bin/sh
>
> su -m -c "echo User: $(whoami)" user1
isn't this $(whoami) being executed in the original /bin/sh to executre
it under the su wouldn't you need something like
\$(whoami)
> sle
--
VR ~
TW
Email: [EMAIL PROTECTED]
"Knowledge Is Power"
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
4 matches
Mail list logo