logname(C)
logname --
get login name
Syntax
logname
Description
logname returns the user's login name as found in
/etc/utmp. If no login name is found, logname
displays an error message on the standard error and returns a
non-zero exit status.
Exit values
logname returns the following values:
0-
successful completion
>0-
an error occurred
See also
env(C),
,getlogin(S-osr5)
,getuid(S-osr5)
id(C),
login(M),
logname(S-osr5)
Standards conformance
logname is conformant with:
ISO/IEC DIS 99452:1992, Information technology Portable Operating System Interface (POSIX) Part 2: Shell and Utilities (IEEE Std 1003.21992);
AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005