diff options
author | Erich Eckner <git@eckner.net> | 2021-03-26 05:46:09 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-03-26 05:46:09 +0100 |
commit | 81f83a441871ae1331742b1c8c04d79e5b76d58c (patch) | |
tree | d0fc4989e9baf57a6a7faf1c02b734386c952244 /cron | |
parent | 0802c342c390d72c784eecffe54d3e67cf51ce0d (diff) | |
download | logwatch-overrides-81f83a441871ae1331742b1c8c04d79e5b76d58c.tar.xz |
cron: fetch "CMDEND", too
Diffstat (limited to 'cron')
-rw-r--r-- | cron | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |