Path: utzoo!utgpu!watmath!clyde!att!rutgers!cmcl2!phri!marob!daveh
From: daveh@marob.MASA.COM (Dave Hammond)
Newsgroups: comp.unix.xenix
Subject: Re: Finding the user name via the shell
Keywords: shell variables
Message-ID: <409@marob.MASA.COM>
Date: 2 Dec 88 13:33:33 GMT
References: <6323@polyslo.CalPoly.EDU>
Reply-To: daveh@marob.masa.com (Dave Hammond)
Organization: ESCC  New York City
Lines: 10

In article <6323@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...

Try `logname'  (RTFM: logname(C)).

--
Dave Hammond
...!uunet!masa.com!{marob,dsix2}!daveh