Bug 56863

Summary: add "-t" argument to "last" to specify target time
Product: [Retired] Red Hat Raw Hide Reporter: Jonathan Kamens <jik>
Component: SysVinitAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: rvokal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-25 06:05:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to add "-t" support
none
Better patch with error checking none

Description Jonathan Kamens 2001-11-29 03:46:52 UTC
The attached patch adds a "-t" argument to "last" (and thus, to "lastb" as
well) for specifying a timestamp limiting which records in wtmp will be
examined.  In other words, "-t" says that you want to see what the state of
the system was as of the specified time, rather than as of now.  This is
very useful, e.g., to determine who was logged in at a given time.

I've submitted this patch to the maintainer of sysvinit, but I thought I'd
also submit it to y'all in case you think it's useful enough to include in
Red Hat before he does (or even if he doesn't).

Comment 1 Jonathan Kamens 2001-11-29 03:47:16 UTC
Created attachment 39007 [details]
Patch to add "-t" support

Comment 2 Jonathan Kamens 2001-11-29 14:35:00 UTC
Created attachment 39044 [details]
Better patch with error checking

Comment 3 Bill Nottingham 2002-07-19 01:46:58 UTC
Added in 2.84-5, thanks!