> I received the following request from one of our department managers
> "I want to show somebody in my department that she hardly ever works -
> can the system tell you how long a session was not used in a day ?"
> Is this possible ? I know about the login times (using the command "last"),
> but I don't know if it is possible to find the idle time during the time the
> user was logged in, and even if I do, how do I interpret that ?
> Any help on this subject will be appreciated.
> Regards
> Dirk
Type "w" and hit return. You will get something that looks like this:
bash-2.05# w
11:48am up 100 day(s), 1:25, 4 users, load average: 1.80, 1.73,
1.58
jsaslow console Fri 8am 5days /usr/dt/bin/sdt_shell
-c ? u
jsaslow pts/4 Fri 8am 8:35 1 w
jsaslow pts/5 Fri 8am 19:19 bash
jsaslow pts/6 Fri 8am 1:08 3 3 telnet machine2
jsaslow pts/7 Fri 8am 3:02 telnet machine
jsaslow pts/11 Fri 8am 20:31 ssh deuce
jsaslow pts/12 Fri 8am 18:54 2:28 1 bash
jsaslow pts/16 Fri 8am 2:26 bash
jsaslow pts/17 Fri 8am 15 11 10 ssh deuce
jsaslow pts/18 Fri 8am 20:31 1 ssh firewall
dlord pts/10 11Feb02 9days 1 -csh
jsaslow pts/1 Fri 8am 22:57 mysql -u root -p
syse_dev
jsaslow pts/2 Fri 8am 5days 1 ssh deuce
jsaslow pts/3 Fri 8am 19:19 2 bash
jsaslow pts/21 Fri 8am 21:23 telnet machine3
jsaslow pts/22 Fri10am 55 11:20 9:06 ./xanim +V +Ae 1F09
Homer the Vi
dlord pts/20 11Feb02 8days 1 -csh
dlord pts/8 11Feb02 9days -csh
From that, you can see on this machine that dlord, for example, logged
in on pts/20 on Feb 11, 2002 and has been idle on that tty for 8 days.
You can also see what command they're running from that tty.
Hope that's helpful.
PS- Pay no attention to the episode of the Simpsons playing on this
machine :o)
--
Please note: If you would like to respond to me, don't use my "From" or
"Reply-to" address as it is used as a spam filter. You can contact me
directly by sending e-mail to jsaslow using the shoelacecity domain.
BTW- that's a dotcom!