.TH idlesecs "" "" "Command"
.PC "Count the seconds a terminal has been idle"
\fBidlesecs \fIdevice\fR
.PP
.B idlesecs
counts the number seconds that
.I device
has been idle.
For example, to count the number of seconds that device
.B /dev/com1l
has been idle, use the command:
.DM
	idlesecs /dev/com1l
.DE
.PP
If all goes well, it prints the number seconds to the standard-output device
and returns zero.
If an error occurs (e.g.,
it cannot open
.IR device ),
.B idlesecs
writes a message to the standard error and returns one.
.SH "See Also"
.B
commands,
lmo
.R
.SH Notes
.B idlesecs
is used by the script
.BR lmo ,
which logs out a user after a selected period of idle time.
For details, see the Lexicon entry for that command.
