Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!bpa!cbmvax!vu-vlsi!dsinc!lgnp1!phile From: phile@lgnp1.LS.COM (Phil Eschallier) Newsgroups: comp.unix.xenix Subject: Re: Finding the user name via the shell Keywords: shell variables Message-ID: <440@lgnp1.LS.COM> Date: 7 Dec 88 22:40:44 GMT References: <6323@polyslo.CalPoly.EDU> Organization: Lagniappe Systems (Norristown, PA) Lines: 10 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... > try this: NAME=`logname` echo $NAME