Finding the user name via the shell

Dave Hammond daveh at marob.MASA.COM
Mon Dec 5 23:16:51 AEST 1988


In article <481 at fallst.UUCP> tkevans at fallst.UUCP (Tim Evans) writes:
>following example:
>
>	#get long listing of $HOME directory and mail to me
>	ls -l $HOME | mail `logname`
>
>Other System V *NIX's support the environmental variable $LOGNAME, but Xenix
>don't!

If you place the line:

LOGNAME=`logname`; export LOGNAME

in /etc/profile, then Xenix supports the LOGNAME variable.  This works
for the Bourne and Korn shells.  I'm not a csh'er but I suspect there's
a similar systemwide login commands file.

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



More information about the Comp.unix.xenix mailing list