Understanding Idle/Inactive sessions and whether or not someone is logged in
Hi Everyone,
I'm trying to understand if anyone is left on a server. Basically I manage a simple linux server remotely used by 3-4 individuals. I can never tell if someone is actually on or not using w/who. What I'm seeing is some people having what appears to be inactive/lost VNC sessions. I don't understand idle fully, but I do believe a program (without user interaction) can clear idle back to 0, correct? Anyway, I'm asking because every now and then I need to reboot the server, and I do not want to interrupt any program working on calculations or waiting on having the data saved. Here's what I see in w: Code:
me@matrix:~> w |
There is a 'wall' command that can be run as a root and the message you type can be delivered to all terminals.
As far as running processes is concerned I ahve found 'ps' most useful. If you know the username of the people you think have logged in then 'ps -u'. You can also look at the passwd file and look at the uid and gid and look it up on ps. Try 'man ps' for more info. Hope this helps. |
All times are GMT -5. The time now is 02:38 PM. |