PDA

View Full Version : Use Automator To Track Length of Time Logged In?




ll PiStoNs ll
Mar 12, 2013, 03:25 PM
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
Mar 12, 2013, 04:46 PM
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.

ll PiStoNs ll
Mar 15, 2013, 10:04 AM
Thank you kryten!!! Much appreciated