monitor hours
Erez D
erez0001 at gmail.com
Fri Nov 2 10:40:15 IST 2012
On Thu, Nov 1, 2012 at 1:15 PM, Nadav Har'El <nyh at math.technion.ac.il>wrote:
> On Thu, Nov 01, 2012, Erez D wrote about "monitor hours":
> > i am looking for a way to monitor the activity on my computer (i usually
> > use it via vnc)
>
> I'm not sure how you use VNC - if you close VNC when you stop working,
> you can look at the VNC server log on the remote machine. Assuming it's
> Linux (it's linux-il after all ;-)), look at $HOME/.vnc/*.log. You'll
> see entries like:
>
> Mon Oct 29 16:56:23 2012
> Connections: accepted: 1.2.3.4::2169
>
> ...
>
> Mon Oct 29 18:19:09 2012
> Connections: closed: 1.2.3.4::2169 (Clean disconnection)
>
> > maybe let the screensaver log when it started and when it ends, so i
> have a
> > rough estimate of the hours i was working on the computer
>
> I'm sure there's a way to do this, but how to do it obviously depends on
> your environment/screensaver.
>
> Two other options you can consider:
>
> 1. If you use a shell, tell it to keep history with timestamps (see your
> shell's manual page on how to use it), then you can know when you ran
> which command.
>
> 2. Turn on process accounting (a quick Google search turned up these
> instructions:
>
> http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html
> and see what commands were run, when.
>
>
>
looks interesting, but what if i have an open vnc connection from last week
and open vi/eclipse/emacs and write new code.
until i try to compile or do something else, none of the solutions above
will work.
the only way i see it is to catch kbd/mouse events ...
how do i do that globaly for my display ?
> --
> Nadav Har'El | Thursday, Nov 1 2012, 16 Heshvan
> 5773
> nyh at math.technion.ac.il
> |-----------------------------------------
> Phone +972-523-790466, ICQ 13349191 |The space between my ears was
> http://nadav.harel.org.il |intentionally left blank.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20121102/71e6fe8d/attachment.html>
More information about the Linux-il
mailing list