Operating System - HP-UX
1833053 Members
2729 Online
110049 Solutions
New Discussion

logname command and Reflections x

 
SOLVED
Go to solution
Penni Nussbaum
Frequent Advisor

logname command and Reflections x

When I login through regular telnet (I use Reflections), the command "logname" shows my login name. However, when I login through Reflections X ( X windowing), the command" logname" returns "????". This is not a pathing problelm, as when I enter /usr/bin/logname, it still returns "????".
What environment issue am I missing?
2 REPLIES 2
Thierry Poels_1
Honored Contributor
Solution

Re: logname command and Reflections x

hi,
"logname" retrieves the name of the user currently logged in on a terminal associated with the calling process, as found in /etc/utmp. This is where x-windows might fail.
Maybe you could try "echo $LOGNAME" as a workaround.
regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Penni Nussbaum
Frequent Advisor

Re: logname command and Reflections x

Thanks, it worked!