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

Re: Keyboard Timelogger



There is a kernel module called "inotify" and a userland "inotify-tools" that can be set to passively monitor inode changes.  So maybe identify specific things you're interested in, point inotify at it, and script against it.  http://en.wikipedia.org/wiki/Inotify

And at least in archlinux, there is the directory "/dev/input/" which is very interesting in its own right.

-- 
Matt Kotys 
------Original Message------
From: Herbie
Sender: luci-discuss-owner@luci.org
To: luci-discuss@luci.org
ReplyTo: luci-discuss@luci.org
Subject: Re: Keyboard Timelogger
Sent: Nov 29, 2009 10:23 PM

No, I keep my xsession up and running, I think maybe hooking the chess 
timer up to my seat, so that my ass starts it running would be the safest 
bet.

h.

On Sun, 29 Nov 2009, Danny Sauer wrote:

> Do you log in and log out generally, or leave an X session open all the time? 
> If you're usually logging and and out, you could do this with a PAM module in 
> the session part of the stack.  The use of pam_env and pam_exec with some 
> simple shell scripting could do something which starts / stops a timer 
> daemon.
>
> Or you could put something in your .bashrc and .bash_logout if you use bash - 
> I'm thinking something like increment a counter file on login, decrement the 
> counter file on logout, and have a cron job running every minute / 5 minutes 
> which increments an n*interval counter file named based on the date if the 
> counter's greater than 0 (indicating a logged-in shell).
>
> Or use utmp / w and increment the "someone was logged in" file if your 
> username appears in the w output.
>
> Or get one of those lawyer / chess timer things on your desk, and hit the 
> apropriate button when you start / stop working on the machine. ;)
>
> --Danny
>
> Herbie wrote:
>> I'm looking for a small prog that will track how much time I spend at the 
>> keyboard (and mouse) each day, and hopefully email me a little report. I'm 
>> looking at keyfrog, as the only prog I've seen so far. Don't know if it's 
>> quite what I need.
>> 
>> h.
>
> -
> To unsubscribe, send email to majordomo@luci.org with
> "unsubscribe luci-discuss" in the body.
>

-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.


Sent from my Verizon Wireless BlackBerry


-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.