[Pkg-sysvinit-devel] Bug#522318: seamless last(1) even at the beginning of the month

jidanni at jidanni.org jidanni at jidanni.org
Thu Apr 2 18:51:41 UTC 2009


Package: sysvinit-utils
Severity: wishlist

It's that time of the month again :-)
$ last

wtmp begins Thu Apr  2 23:01:04 2009

I wish last would always just show oh, a month's worth of entries.
OK, I'll use this workaround:

{ last; last -f /var/log/wtmp.1;}|
perl -nwle 'next if /^$|wtmp.*begins/;print;exit if $.==22'

No longer does last act like a sawtooth wave depending on the day of the
month.





More information about the Pkg-sysvinit-devel mailing list