|
NAMEck-list-sessions - Show ConsoleKit Session InformationSYNOPSISck-list-sessions [--all] [--format=format] [--help] [--version]DESCRIPTIONck-list-sessions is a utility that displays information from the ConsoleKit database. By default, only open sessions are shown. The --all option can be used to display all existing sessions on the system. ck-list-sessions returns information about each ConsoleKit session. Users can specify which properties to display via the --format option.The following properties can be displayed for each session: OPTIONSThe following options are supported:-a, --all
-f, --format=format
-h, --help
-V, --version
EXTENDED DESCRIPTIONConsoleKit session propertiesFor each session, the following session properties are displayed:unix-user
realname
seat
session-type
session-class
session-state
display-type
open
active
x11-display
x11-display-device
display-device
remote-host
VTNr
is-local
on-since
login-session-id
idle-since-hint
However, for non-graphical sessions with a display-device set the Session object itself will periodically update this value based on the activity detected on the display-device itself. This should not be considered authoritative.
EXAMPLESExample 1: Show running sessions.example% ck-list-sessions This command would generate output like the following for each session: SessionSeat1Local: unix-user = '50' realname = 'GDM Reserved UID' seat = 'Seat1' session-type = 'LoginWindow' display-type = 'Local' open = 'TRUE' active = 'TRUE' x11-display = ':0' x11-display-device = '/dev/console' display-device = '/dev/console' remote-host-name = '' is-local = 'TRUE' on-since = '2009-08-11T06:46:42.941134Z' login-session-id = '' idle-since-hint = '' Example 2: Show only the session-id, unix-user, and display-type properties. example% ck-list-sessions --format="session-id,unix-user,display-type" This command would generate output like the following for each session: SessionSeat1Local 50 Local SEE ALSOck-history(1), ck-launch-session(1), console-kit-daemon(1m)NOTESWritten by Brian Cameron, Sun Microsystems Inc., 2009. Copyright (c) 2009 by Sun Microsystems, Inc.
Visit the GSP FreeBSD Man Page Interface. |