detecting idle processing/logins

detecting idle processing/logins

Post by Brent Webst » Sun, 23 Jan 1994 07:54:34

I've have a server with limited resources as well as users telneting into the server and
Xwindowing back to their node.  That's ok but some of them don't like to logout.
I'm currently parsing the outputs of the ps and finger commands using csh/awk, checking
for idle process/logins then sending * messages using rwall.

Is there a cleaner method?

Please reply via email, my new administrator has his finger on the rm button.

    Some of us like hunting wild boar in a thicket, and some
    like to go to the supermarket and pick up a baked ham!


1. how to detect if process is a remote login?

I'm posting this for a colleague who does not have posting access -


Jeffrey Johnson


I am attempting to detect within a C program if the current process
resulted from a remote login. So far I have found nothing better than
checking the owner of the process vs the owner of "/dev/console".
However this method becomes confused if someone sitting at a
console terminal does an "su". Does anyone know of a better approach?




LANL MS H820                    Voice           505 665 1831
Los Alamos, NM 87545 USA        FAX             505 665 5107

2. Help with KDM, XDMCP and Remote X

3. detecting process death from unrelated process

4. Is anyone working on a DirectPlay IP MASQ MOD?

5. Redirecting a process or detecting a process?

6. 100GB RAID Array with Linux and not NT

7. Autologout - idles program - detecting inactivity from a modem port

8. Two cards video and two monitors

9. How to detect whether CPU is idle?

10. program to detect PPP idle and start another program

11. how to detect user is idle in X

12. command to detect keyboard idle?

13. detecting logout and idle time