Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.unix.admin Subject: Re: get user's idle time Message-ID: <2430@sixhub.UUCP> Date: 28 Nov 90 03:03:21 GMT References: <1990Nov27.202215.4061@cubmol.bio.columbia.edu> Reply-To: davidsen@sixhub.UUCP (bill davidsen) Organization: *IX Public Access UNIX, Schenectady NY Lines: 12 In article <1990Nov27.202215.4061@cubmol.bio.columbia.edu> ping@cubmol.bio.columbia.edu (Shiping Zhang) writes: | Could anyone tell me how to get an user's idle time? Either from | system calls in C or from a shell script. Thanks. The latest version of my screen blanker looks at the time since last modification of the virtual terminal. It's easy to extend this to serial or ethernet lines. -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc and 80386 mailing list "Stupidity, like virtue, is its own reward" -me