From 7011be08ea9bc7ab8f0ce24ce18acf087d91dd8f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 18 Sep 2009 02:05:41 +0000 Subject: [PATCH] Document cwd, attempt to document time/date formats. --- sudoreplay.pod | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/sudoreplay.pod b/sudoreplay.pod index e9dc50cc4..9ae513d26 100644 --- a/sudoreplay.pod +++ b/sudoreplay.pod @@ -66,6 +66,17 @@ On systems with POSIX regular expression support, the pattern may be an extended regular expression. On systems without POSIX regular expression support, a simple substring match is performed instead. +=item cwd I + +Evaluates to true if the command was run with the specified current +working directory. + +=item fromdate I + +Evaluates to true if the command was run on or after I. +See L<"Date and time format"> for a description of supported +date and time formats. + =item group I Evaluates to true if the command was run with the specified @@ -77,6 +88,12 @@ specified when B was run this field will be empty in the log. Evaluates to true if the command was run as the specified I. Note that B runs commands as user I by default. +=item todate I + +Evaluates to true if the command was run on or prior to I. +See L<"Date and time format"> for a description of supported +date and time formats. + =item tty I Evaluates to true if the command was run on the specified terminal @@ -123,6 +140,66 @@ and exit. =back +=head2 "Date and time format" + +The time and date may be specified multiple ways: + +=over 8 + +=item HH:MM:SS am MM/DD/CCYY timezone + +Note that the date portion uses US format, regardless of locale. + +=item HH:MM:SS am Month, Day Year timezone + +The month and day names may be abbreviated. Note that Month and +Day of the week names must currently be specified in English. + +=item now + +The current time and date. + +=item tomorrow + +The current time but tomorrow's date. + +=item yesterday + +The current time but yesterday's date. + +=item next Friday + +The first second of the day, next Friday. + +=item this week + +The current time but the first day of the coming week. + +=back + +Either time or date may be omitted, the am/pm and timezone are +optional. If no date is specified, the current day is assumed; if +no time is specified, the first second of the specified date is +used. The less significant parts of both time and date may also +be omitted, in which case zero is assumed. For example, the following +are all valid: + +=over 8 + +=item 10:01 am 9/17/2909 + +=item 10:01 am + +=item 10 + +=item 9/17/2009 + +=item 10:01 am Sep 17, 2009 + +=item Sep 17, 2009 + +=back + =head1 FILES =over 24 -- 2.40.0