home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / wizards / 5297 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.2 KB

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