<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Nov 1, 2012 at 1:15 PM, Nadav Har'El <span dir="ltr"><<a href="mailto:nyh@math.technion.ac.il" target="_blank">nyh@math.technion.ac.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Nov 01, 2012, Erez D wrote about "monitor hours":<br>
<div class="im">> i am looking for a way to monitor the activity on my computer (i usually<br>
> use it via vnc)<br>
<br>
</div>I'm not sure how you use VNC - if you close VNC when you stop working,<br>
you can look at the VNC server log on the remote machine. Assuming it's<br>
Linux (it's linux-il after all ;-)), look at $HOME/.vnc/*.log. You'll<br>
see entries like:<br>
<br>
Mon Oct 29 16:56:23 2012<br>
Connections: accepted: 1.2.3.4::2169<br>
<br>
...<br>
<br>
Mon Oct 29 18:19:09 2012<br>
Connections: closed: 1.2.3.4::2169 (Clean disconnection)<br>
<div class="im"><br>
> maybe let the screensaver log when it started and when it ends, so i have a<br>
> rough estimate of the hours i was working on the computer<br>
<br>
</div>I'm sure there's a way to do this, but how to do it obviously depends on<br>
your environment/screensaver.<br>
<br>
Two other options you can consider:<br>
<br>
1. If you use a shell, tell it to keep history with timestamps (see your<br>
shell's manual page on how to use it), then you can know when you ran<br>
which command.<br>
<br>
2. Turn on process accounting (a quick Google search turned up these<br>
instructions:<br>
<a href="http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html" target="_blank">http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html</a><br>
and see what commands were run, when.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br>looks interesting, but what if i have an open vnc connection from last week and open vi/eclipse/emacs and write new code.<br>until i try to compile or do something else, none of the solutions above will work.<br>
<br>the only way i see it is to catch kbd/mouse events ...<br>how do i do that globaly for my display ?<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
Nadav Har'El | Thursday, Nov 1 2012, 16 Heshvan 5773<br>
<a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a> |-----------------------------------------<br>
Phone <a href="tel:%2B972-523-790466" value="+972523790466">+972-523-790466</a>, ICQ 13349191 |The space between my ears was<br>
<a href="http://nadav.harel.org.il" target="_blank">http://nadav.harel.org.il</a> |intentionally left blank.<br>
</font></span></blockquote></div><br></div>