Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ll PiStoNs ll

macrumors regular
Original poster
Aug 5, 2007
169
0
Hey guys,

I work remotely and report my hours online every two weeks, then receive a paycheck based on what I report. I would like to report my hours with better accuracy so I decided to create a work account on my MBA so every night I can log in to that account and do solely hourly work. Is there any automator script I could write or free 3rd party applications I could use to easily track and report the length of time I was logged into my work account every two weeks?

Thank you!
 

kryten2

macrumors 65816
Mar 17, 2012
1,114
99
Belgium
Take a look at the last command in Terminal. Or a login/logout hook where you dump a timestamp into a logfile.

Info : http://hints.macworld.com/article.php?story=2006081701162739
http://reviews.cnet.com/8301-13727_7-20029495-263.html


NAME
last -- indicate last logins of users and ttys

SYNOPSIS
last [-n] [-f file] [-h host] [-t tty] [user ...]

DESCRIPTION
Last will list the sessions of specified users, ttys, and hosts, in
reverse time order. Each line of output contains the user name, the tty
from which the session was conducted, any hostname, the start and stop
times for the session, and the duration of the session. If the session
is still continuing or was cut short by a crash or shutdown, last will so
indicate.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.