Need detailed user report based on 'last' command or 'finger'

What we are after is a shell script that can easily tie into an AppleScript, perhaps.

I am familiar with the 'last' and 'finger' commands and that may be what we need.

It needs to work like this:

1. the command is entered or pasted

2. generates a login/logout record of all users for that machine, minus the reboot & shutdown users

3. comes in a spreadsheet friendly format.

A little background:

All machines are tied to an open (active) directory for login on a Mac OS X server.

We would prefer for the output to come in an e-mail using the sendmail command.

Script can run with or without root permissions.

This script will run on the local machine directly.

So to sum up, we want to be able to run this script, have it gather the information needed (login and logout times only --- for each active directory user) and send as an email to a designated address in a spreadsheet friendly format.

We would like to see this wrapped in an applescript application so we can choose date ranges and execute.

Please ask any questions if clarification is needed.

At the end of the day, we will be using this to calculate payroll. The login/logout times will be the timestamps for in and out for shifts and breaks. Our employees will login to clock in, logout to clock out. If this can also add the hours up, that would be great.

Habilidades: Linux, Mac OS, Perl, Shell Script, UNIX

Veja mais: in linux shell script, shell script or, last, command, linux login email, applescript perl, run command linux, shell script perl, perl script shell script, record mac, work based report, applescript mac, directly mac, command command, linux need root, report using, active directory 2012, mac applescript, active directory perl, script active directory users

Acerca do Empregador:
( 38 comentários ) St. Petersburg, United States

ID do Projeto: #2512604

Concedido a:


Hi, I've done a draft of the script. Please see PM

$30 USD em 1 dia
(1 Comentário)

2 freelancers estão ofertando em média $40 para esse trabalho


Think I'm pretty good at scripting. Working for a mojor telecom company & handing it's projects. Trying freelancing as a part time. The task you have isn't big & I can finish in few days. Thanks!

$50 USD in 3 dias
(0 Comentários)