Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!uwmcsd1!marque!uunet!steinmetz!davidsen
From: davidsen@steinmetz.ge.com (William E. Davidsen Jr)
Newsgroups: comp.unix.xenix
Subject: Re: Finding the user name via the shell
Keywords: shell variables
Message-ID: <12719@steinmetz.ge.com>
Date: 2 Dec 88 21:50:21 GMT
References: <6323@polyslo.CalPoly.EDU>
Reply-To: davidsen@crdos1.UUCP (bill davidsen)
Organization: General Electric CRD, Schenectady, NY
Lines: 11

In article <6323@polyslo.CalPoly.EDU> mdella@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...

There is a logname command which has been around since 2.1.2 at least. I
believe the name is read from wtmp or some such.
-- 
	bill davidsen		(wedu@ge-crd.arpa)
  {uunet | philabs}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me