Bug 56863 - add "-t" argument to "last" to specify target time
Summary: add "-t" argument to "last" to specify target time
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: SysVinit
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-29 03:46 UTC by Jonathan Kamens
Modified: 2014-03-17 02:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-01-25 06:05:11 UTC
Embargoed:


Attachments (Terms of Use)
Patch to add "-t" support (2.52 KB, patch)
2001-11-29 03:47 UTC, Jonathan Kamens
no flags Details | Diff
Better patch with error checking (3.20 KB, patch)
2001-11-29 14:35 UTC, Jonathan Kamens
no flags Details | Diff

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!


Note You need to log in before you can comment on or make changes to this bug.