Unix Shell - last output

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > September 2007 > last output





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author last output
Farid Hamjavar

2007-09-23, 1:27 am


Hello,

I am familiar with 'sa' and 'ac'

However, I like to know if any perl/shell script/C
utility out there that I can feed to it output from 'last'
and get some formatted output and/or statistics out of it.



Thank you,
Farid



Chris F.A. Johnson

2007-09-23, 7:29 am

On 2007-09-23, Farid Hamjavar wrote:
>
> I am familiar with 'sa' and 'ac'


What are 'sa' and 'ac'? They are not standard utilities, so you
should explain what they are.

> However, I like to know if any perl/shell script/C
> utility out there that I can feed to it output from 'last'
> and get some formatted output and/or statistics out of it.


There are many ways of reformatting the output of last (or any other
command); what do you want to happen?

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org/shell/>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
Maxwell Lol

2007-09-23, 1:31 pm

"Chris F.A. Johnson" <cfajohnson@gmail.com> writes:

> On 2007-09-23, Farid Hamjavar wrote:
>
> What are 'sa' and 'ac'? They are not standard utilities, so you
> should explain what they are.


sa is "system accounting" - used on a Solaris system. The solaris
newsgroup might offer more help.
John DuBois

2007-09-23, 7:22 pm

In article <Pine.LNX.4.64.0709221812380.31955@chishio.swcp.com>,
Farid Hamjavar <hamjavar@swcp.com> wrote:
>However, I like to know if any perl/shell script/C
>utility out there that I can feed to it output from 'last'
>and get some formatted output and/or statistics out of it.


You could start with:

ftp://ftp.armory.com/pub/scripts/loginstat

John
--
John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
Farid Hamjavar

2007-09-25, 1:26 pm


Hello,
Many thanks to those who responded.

The 'ac' Connect accounting un*x and 'sa'
for resource (cpu ,etc) accounting of un*x
is on nearly all of linux flavors I came across
as well as AIX and Ultrix [for the old-timers
who tread this ;-)]

Same binaries/source offered via GNU ....
http://www.gnu.org/software/acct/ma...pter/index.html

I think at this time I stick with what system offers.

Thanks,
Farid




Date: Sat, 22 Sep 2007 18:20:31 -0600 (MDT)
From: Farid Hamjavar <hamjavar@swcp.com>
To: undisclosed-recipients: ;
Newsgroups: comp.unix.shell
Subject: last output


Hello,

I am familiar with 'sa' and 'ac'

However, I like to know if any perl/shell script/C
utility out there that I can feed to it output from 'last'
and get some formatted output and/or statistics out of it.



Thank you,
Farid

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com