home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!ukma!nsisrv!Pt!postmaster@hq.af.mil!lpeters
- From: lpeters@postmaster@hq.af.mil (Leslie D Peters)
- Newsgroups: comp.unix.wizards
- Subject: Re: Terminating idle users
- Message-ID: <15300@hq.hq.af.mil>
- Date: 21 Dec 92 13:36:15 GMT
- References: <1992Dec18.211319.25938@wlbr.iipo.gtegsc.com>
- Sender: news@Pt.hq.af.mil
- Reply-To: lpeters@marge.hq.af.mil
- Organization: 7th Communications Group
- Lines: 31
-
- In article <1992Dec18.211319.25938@wlbr.iipo.gtegsc.com>, fdm@WLV.IIPO.GTEGSC.COM (Frank D. Malczewski) writes:
- |>
- |>
- |> I'm wondering whether there is a general approach to determine when a particular
- |> user has been idle for x minutes (no keyboard, mouse, screen i/o), given a
- |> unix system, running X/Motif. Basically when the user has not done anything
- |> for a period of time, how can one detect this condition?
- |>
- |> Portability is an issue here, but a machine-specific approach would at least
- |> provide a starting point... (I realize this is likely a pretty tall order,
- |> given that no kernel mods are possible for doing this.)
- |> --
- |>
- |> Frank Malczewski (fdm@wlv.iipo.gtegsc.com)
-
- I have posted a pair of scripts to comp.unix.shell that work quite
- well in AIX 3.[12].x. They run in ksh here but should port to
- [cb]sh easily.
- --
- /============================================================================\
- | | |
- | ___ | |
- | ___....-----'---`-----....___ | I haven't lost my mind -- |
- | ========================================= | |
- | ___`---..._______...---'___ | it's backed up on |
- | (___) _|_|_|_ (___) | tape somewhere. |
- | \\____.-'_.---._`-.____// | |
- | ~~~~`.__`---'__.'~~~~ | lpeters@marge.hq.af.mil |
- | `~~~' | |
- | | Les Peters |
- \============================================================================/
-