tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: sherry () canidae ! cps ! msu ! edu
To: tru64-unix-managers
Subject: SUMMARY: How to monitor console activities
Date: Sun, 02 Jul 1995 20:31:22 +0000	[thread overview]
Message-ID: <96075321606380.tru64-unix-managers.marc@archive.invalid> (raw)

My original question:

    This is a continuation of my earlier question about /dev/kbd.  All
I am trying to do is to monitor activities at the console.  When a user
logs in from the console, stop all background jobs; when the console
has been idle for over 15 minutes, resume them.  I have successfully
opened /dev/console and /dev/mouse. However, when I used stat to obtain
the access time and modification time, the numbers did not reflect the
real activities. They did not change when I moved the mouse around or
typed in one of the xterms. Xdm is capable of knowing if a user is at
the console, and how long the console has been idle. So there must be a
way of doing it.  Where is this information? How can I obtain it?

Answers:
1. There is no /dev/kbd. The only things I need to check are /dev/console
   and /dev/mouse.
2. Instead of stat, I used poll. It is clean and easy. I have misled 
   myself. :-)

My program is working great now. I am happy. I am glad there is still
time for me to enjoy this long weekend.

Many thanks to Tom Blinn(tpb@zk3.dec.com) and Rob Lembree(lembree@zk3.dec.com),
and all those that replied. You guys are really great. Thanks! 


Sherry

                 reply	other threads:[~1995-07-02 20:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox