Finding the user name via the shell
Felix Gaehtgens
felix at netmbx.UUCP
Tue Dec 6 22:00:48 AEST 1988
In article <6323 at polyslo.CalPoly.EDU> mdella at polyslo.CalPoly.EDU (Marcos R. Della) writes:
>I was wondering if anyone out there knew how to determine the users
>login name while running a shell script. I can get the home address
>$HOME, but not the name. This is under sco xenix 2.2.3 I think...
how about:
set name=`who am i | cut -f1 -d" "`
so long,
felix
More information about the Comp.unix.xenix
mailing list