On 26 Oct 2007 at 19:14, Jeff Pang wrote:

> On 10/26/07, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >
> > I am executing my $usr=qx("who am i"); to get the user id on unix
> > machine but it is giving error. sh: who am i: not found
> >
> 
> Oops,it's `whoami` not `who am i` unless you have aliased it.

I don't know:

-bash-3.00$ who am i
dpaikkos pts/14       Oct 26 12:16 (host.mydomain.com)

Work for me on a bash shell as does whoami.
Dp.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to