Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: idle time Message-ID: <7263@auspex.auspex.com> Date: 19 Apr 91 18:35:29 GMT References: <1991Apr17.024209.1056@nmt.edu> <1991Apr17.150347.29858@logixwi.uucp> Organization: Auspex Systems, Santa Clara Lines: 9 > Try having a look at the modification times of the user's > /dev/tty* file. Try having a look at the *access* time instead; that's the way all the programs *I* know of that find "idle time" do it (the theory is that they want the *user's* idle time, i.e. the time since they last asked the system to do something, and the access time on the tty device gets updated whenever a "read()" completes on that device, i.e. when something to read becomes available because the user typed it).