get user's idle time

Alex Bottonelli alex at bma35b.ma02.bull.com
Wed Dec 12 03:05:55 AEST 1990


In article <1990Nov27.202215.4061 at cubmol.bio.columbia.edu>, ping at 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.
> 
> -ping

On my system ( System V ) who accepts a -u option that will display
the idle time of a user's tty ( a dot '.' for no idle time ). Does
your system have such a option for who ? Hope it helps

     ____        ___ 		||  Alessandro Bottonelli
    /   /  /    /    |/		||  Bull Hn Italia
   /---/  /    /---  /		||  141 Needham St. - Ms 213
  /   /  /___ /___  /|		||  Tel. xx1-617-552-6471
_____________________)		||  Fax. xx1-617-552-5318
				||  Net. ..!uunet!hbiso!bma35b!alex



More information about the Comp.unix.admin mailing list