summaryrefslogtreecommitdiff
path: root/cron
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-26 05:46:09 +0100
committerErich Eckner <git@eckner.net>2021-03-26 05:46:09 +0100
commit81f83a441871ae1331742b1c8c04d79e5b76d58c (patch)
treed0fc4989e9baf57a6a7faf1c02b734386c952244 /cron
parent0802c342c390d72c784eecffe54d3e67cf51ce0d (diff)
downloadlogwatch-overrides-81f83a441871ae1331742b1c8c04d79e5b76d58c.tar.xz
cron: fetch "CMDEND", too
Diffstat (limited to 'cron')
-rw-r--r--cron2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron b/cron
index ff419e7..85ff4d6 100644
--- a/cron
+++ b/cron
@@ -61,7 +61,7 @@ while (defined($ThisLine = <STDIN>)) {
$User = $1;
$Runs->{$User}->{$ThisLine}++;
$ExecutedCommand{$PID} = {command=>$ThisLine, user=>$User};
- } elsif ($ThisLine =~ s/^CMD FINISH \((.+)\)\s*$/$1/) {
+ } elsif ($ThisLine =~ s/^CMD( FINISH|END) \((.+)\)\s*$/$2/) {
$Runs->{$User}->{$ThisLine}++;
} elsif ($ThisLine =~ s/^(END|CMD START) \((.+)\)\s*$/$1/) {
#Ignore for now, NetBSD users could get tricky with