Measure your working time on windows

Posted by Jens J├Ąger on October 19, 2009

For measure working time on windows I wrote a little script. It calculates the time since the last login. The output of the script looks like this:

The script is written in Ruby and runs under cygwin. I saved the script in a folder tools in my homedir and have the following alias in my .bashrc:

So finally the script looks like this:

Known issues:

The script is based on the windows command systeminfo. Systeminfo returns values in the language of the operating system. So this works only with a german windows. Replace “Systembetriebszeit” with whatever your systeminfo command returns for the uptime.

Update:

Workingtime.rb moves to github. Follow the installation instructions there.

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

Comments

Information about Data protection