rename login entry to show current layer
/usr/lib/layersys/relogin [ -s ]
[ line ]
The relogin command
changes the terminal line field of a user's
entry to the name of the windowing terminal layer
attached to standard input.
messages sent to this user are directed to this layer.
In addition, the
command will show the user associated with this layer.
The relogin command may only be invoked under
relogin is invoked automatically by layers to set the
entry to the terminal line of the first layer created upon startup
and to reset the utmp entry to the real line on termination.
It may be invoked by a user to designate a different layer
to receive write messages.
Suppress error messages.
Specifies which utmp entry to change.
The utmp file is searched for an entry with the specified
That field is changed to the line associated with the standard input.
To learn what lines are associated with a given user, say jdoe,
ps -f -u jdoe
and note the values shown in the ``TTY'' field (see
Returns 0 upon successful completion, 1 otherwise.
If line does not belong to the user issuing the
command, or if standard input is not associated with a terminal,
relogin will fail.
database of users versus terminals
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003