This article is from a FAQ concerning SCO operating
systems. While some of the information may be applicable to any OS,
or any Unix or Linux OS, it may be specific to SCO Xenix, Open
There is lots of Linux, Mac OS X and general Unix info elsewhere on
this site: Search this site is the best
way to find anything.
It's amazing who difficult this seemingly simple task can be. Determining
whether someone is really inactive isn't easy.
The "idleout" program has been included with SCO Unix versions
since Xenix. It is a shell script, so you can easily modify it if
it doesn't quite answer your needs.
There are some limitations to it, however, so you may want to
use something else.
A better program is nidleout by John
Dubois. That's a ksh script- it's complicated, though, and probably
hard to modify unless you understand ksh scripts very well.
However, it may do exactly what you want without modification.
It's possible that just setting the TMOUT variable in ksh or
bash may be enough for your needs; see the man pages for your