Finding the user name via the shell
Tim Evans
tkevans at fallst.UUCP
Wed Dec 7 22:10:54 AEST 1988
In article <249 at tfli.UUCP>, mikej at tfli.UUCP (Michael R. Johnston) writes:
> In article <6323 at polyslo.CalPoly.EDU> mdella at polyslo.CalPoly.EDU (Marcos R. Della) writes:
> >... how to determine the users login name
>
> The correct answer is to use the variable $LOGNAME.
Although the $LOGNAME variable is supported generally on System V *NIX, SCO
Xenix 2.2 does _not_ support it. Rather, as I and others have noted here
previously, the Xenix _command_ 'logname' (note lowercase) returns the
user's login name.
--
UUCP: ...!{rutgers|ames|uunet}!mimsy!aplcen!wb3ffv!fallst!tkevans
INTERNET: tkevans%fallst at wb3ffv.ampr.org
OTHER: ...!attmail!fallst!tkevans
Tim Evans 2201 Brookhaven Court, Fallston, MD 21047 (301) 965-3286
More information about the Comp.unix.xenix
mailing list