On Sun, 08 Feb 2004 15:34:01 +, Andy Fiddaman wrote:
Probably worth mentioning at this point that the 'whoami' utility isn't
standard in core solaris either, that needs the SUNWscpu (SunOS 4.x
compatibility utilities) - who am i | awk '{print$1}' does the same
though.
Andy
[EMAIL
As a caveat, sometimes the 'who am i' will return something more along the
lines of:
username!host pts.
such that the awk solution may or may not work...
Might think to awk or cut the line, and then a sed to be sure to get just
the username...
Carl
On Mon, 16 Feb 2004, Tommy