Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 12, 2013, 03:25 PM   #1
ll PiStoNs ll
macrumors regular
 
Join Date: Aug 2007
Use Automator To Track Length of Time Logged In?

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!
ll PiStoNs ll is offline   0 Reply With Quote
Old Mar 12, 2013, 04:46 PM   #2
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: 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.ph...06081701162739
http://reviews.cnet.com/8301-13727_7-20029495-263.html


Quote:
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.
__________________
Space Corps Directive 34124
kryten2 is offline   0 Reply With Quote
Old Mar 15, 2013, 10:04 AM   #3
ll PiStoNs ll
Thread Starter
macrumors regular
 
Join Date: Aug 2007
Thank you kryten!!! Much appreciated
ll PiStoNs ll is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:53 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC