Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
My problem is i need to get total usage of workstation per day. Only command available to me is the last command which would give something like the following:
root :0 Fri Apr 7 06:00 - 03:00 (08:00)
user :0 Thu Apr 6 03:00 - 23:00 (08:00)
root :0 Thu Apr 6 06:00 - 03:00 (08:00)
root :0 Wed Apr 5 06:00 - 03:00 (08:00)
I dont care about the user just the date. I would like
my ouput to look similar to the following:
Apr 7 workstation was in use for 8 hours
Apr 6 workstation was in use for 16 hours
Apr 5 workstation was in use for 8 hours
Something like the ac command (which is not availabe). thanks for any help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: total time usage by day with last
by roboticus (Chancellor) on Apr 08, 2006 at 01:34 UTC | |
|
Re: total time usage by day with last
by GrandFather (Saint) on Apr 08, 2006 at 01:35 UTC | |
|
Re: total time usage by day with last
by saintmike (Vicar) on Apr 08, 2006 at 06:54 UTC | |
by CountZero (Bishop) on Apr 08, 2006 at 09:03 UTC | |
by Anonymous Monk on Apr 08, 2006 at 14:30 UTC | |
by CountZero (Bishop) on Apr 09, 2006 at 09:11 UTC | |
|
Re: total time usage by day with last
by ikegami (Patriarch) on Apr 08, 2006 at 15:42 UTC |