1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
|
'\" te
.TH ck-list-sessions 1 "22 Oct 2009" "SunOS 5.11" "User Commands"
.SH "NAME"
ck-list-sessions \- Show ConsoleKit Session Information
.SH "SYNOPSIS"
.PP
\fBck-list-sessions\fR [-\fB-all\fR] [-\fB-format=\fIformat\fR\fR] [-\fB-help\fR] [-\fB-version\fR]
.SH "DESCRIPTION"
.PP
\fBck-list-sessions\fR is a utility that displays information from the
ConsoleKit database\&. By default, only open sessions are shown\&. The
-\fB-all\fR option can be used to display all existing sessions on
the system\&. \fBck-list-sessions\fR returns information about each ConsoleKit
session\&. Users can specify which properties to display via the
-\fB-format\fR option\&.
.PP
The following properties can be displayed for each session:
.SH "OPTIONS"
.PP
The following options are supported:
.sp
.ne 2
.mk
\fB-\fBa\fR, -\fB-all\fR\fR
.in +24n
.rt
Show all ConsoleKit sessions\&. If this option is not provided, only open
sessions are shown\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fB-\fBf\fR, -\fB-format=\fIformat\fR\fR\fR
.in +24n
.rt
Display information using the specified \fIformat\fR\&. The
\fIformat\fR value is a list of properties to display
separated by commas\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fB-\fBh\fR, -\fB-help\fR\fR
.in +24n
.rt
Display detailed usage message\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fB-\fBV\fR, -\fB-version\fR\fR
.in +24n
.rt
Display the version of the \fBck-list-sessions\fR application\&.
.sp
.sp 1
.in -24n
.SH "EXTENDED DESCRIPTION"
.SS "ConsoleKit session properties"
.PP
For each session, the following session properties are displayed:
.sp
.ne 2
.mk
\fBunix-user\fR
.in +24n
.rt
The user id value associated with the session\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBrealname\fR
.in +24n
.rt
The name of the user associated with the session\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBseat\fR
.in +24n
.rt
The ID for the ConsoleKit Seat associated with the session\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBsession-type\fR
.in +24n
.rt
The ConsoleKit session type\&. This value is specified by the "Type"
key in the ConsoleKit session configuration file associated with this session\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBdisplay-type\fR
.in +24n
.rt
The ConsoleKit display type\&. This value is specified by the
"DisplayTemplate" key in the ConsoleKit session configuration file
associated with this session\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBopen\fR
.in +24n
.rt
The value is "TRUE" if the session is open, and "FALSE"
otherwise\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBactive\fR
.in +24n
.rt
The value is "TRUE" if the session is active on the seat to which it
is attached, and "FALSE" otherwise\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBx11-display\fR
.in +24n
.rt
The value of the X11 DISPLAY environment variable for this session if one is
present\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBx11-display-device\fR
.in +24n
.rt
The value of the display device that the X11 display for the session is
connected to\&. If there is no x11-display set, then this value is undefined\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBdisplay-device\fR
.in +24n
.rt
The display device associated with the session\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBremote-host\fR
.in +24n
.rt
If the session is not local, the value is the host name associated with the
session\&. If the session is local, the value is empty\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBis-local\fR
.in +24n
.rt
The value is "TRUE" if the session is local, and "FALSE"
if remote\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBon-since\fR
.in +24n
.rt
An ISO 8601 date-time string that corresponds to the time the session started\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBlogin-session-id\fR
.in +24n
.rt
The value of the login session ID that the underlying system uses to enforce
session boundaries\&. If there is no login session ID set then this value is an
empty string\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fBidle-since-hint\fR
.in +24n
.rt
An ISO 8601 date-time string that corresponds to the time of the last change of
the idle-hint\&. This is a hint used to indicate that the session may be idle\&.
For sessions with a x11-display set (ie\&. graphical sessions), it is up to each
session to delegate the responsibility for updating this value\&. Typically, the
screensaver will set this\&.
.sp
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\&.
.sp
This should not be considered authoritative\&.
.sp
.sp 1
.in -24n
.SH "EXAMPLES"
.PP
\fBExample 1: Show running sessions\&.\fR
.PP
.PP
.nf
example% \fBck-list-sessions\fR
.fi
.PP
This command would generate output like the following for each session:
.PP
.PP
.nf
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 = \&'\&'
.fi
.PP
\fBExample 2: Show only the session-id, unix-user, and display-type properties\&.\fR
.PP
.PP
.nf
example% \fBck-list-sessions -\fB-format="session-id,unix-user,display-type"\fR\fR
.fi
.PP
This command would generate output like the following for each session:
.PP
.PP
.nf
SessionSeat1Local 50 Local
.fi
.SH "SEE ALSO"
.PP
\fBck-history\fR(1),
\fBck-launch-session\fR(1),
\fBconsole-kit-daemon\fR(1m)
.SH "NOTES"
.PP
Written by Brian Cameron, Sun Microsystems Inc\&., 2009\&.
Copyright (c) 2009 by Sun Microsystems, Inc\&.
...\" created by instant / solbook-to-man, Sat 24 Oct 2009, 14:10
...\" LSARC 2009/432 ConsoleKit
|