idle time

Chris Lewis clewis at ferret.ocunix.on.ca
Fri Apr 19 13:48:34 AEST 1991


In article <1991Apr17.024209.1056 at nmt.edu> dkpsy121 at nmt.edu (Master Bater) writes:

>I need some help in trying to get the idle time of a user on a tty in C, kinda
>like the way finger does...

Look at the access or modify time on the serial port that the user is logged
into.  One of these will be the last time that a key was hit.  Approximately.
On most systems.
-- 
Chris Lewis, Phone: (613) 832-0541, Internet: clewis at ferret.ocunix.on.ca
UUCP: uunet!mitel!cunews!latour!ecicrl!clewis; Ferret Mailing List:
ferret-request at eci386; Psroff (not Adobe Transcript) enquiries:
psroff-request at eci386 or Canada 416-832-0541.  Psroff 3.0 in c.s.u soon!



More information about the Comp.unix.questions mailing list