[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: users still logged in



On Fri,  8/Nov/02 20:01:35, nate wrote:
> check the process table to see if shells for those ttys are still
> open.
> 
> e.g.
> 
> [aphro@portal:~]$ w
>  20:00:16 up 9 days,  1:31,  2 users,  load average: 1.38, 0.69, 0.60
> USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
> aphro    pts/3    aphro.aphroland. Tue19    0.00s  0.32s  0.09s  w
> aphro    pts/4    aphro.aphroland. Thu22   21:44m  0.08s  0.05s  bash
> [aphro@portal:~]$ ps auxw | grep 'pts/4'
> aphro     8978  0.0  0.1  4048 1660 pts/4    S    Nov07   0:00 -bash
> root      8988  0.0  0.1  4048 1644 pts/4    S    Nov07   0:00 bash
> aphro     2624  0.0  0.0  1336  468 pts/3    S    20:00   0:00 grep pts/4
>

ps uxtpts/4

Regards,
Chris



Reply to: