Newsgroups: comp.unix.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Subject: Re: idle time for w command Message-ID: <1991Apr29.212101.10931@athena.mit.edu> Keywords: w Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology References: <4274@pluto.dss.com> Date: Mon, 29 Apr 91 21:21:01 GMT Lines: 17 In article <4274@pluto.dss.com>, cat@pluto.dss.com (Iain Wacey) writes: |> How does the w command determine how long someone has been idle? It checks the access time on the device file (i.e. the st_atime field of the stat structure obtained by calling stat() on the user's tty device. |> We are |> writing a login protocol using our own devices and w always reports |> users on these devices as being idle for a long period of time. Do your devices correctly update their access times when appropriate? -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710