Project

General

Profile

Submit #3290

Fix /etc/periodic/monthly/200.accounting output

Added by falsifian 12 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Userland
Target version:
-
Start date:
07/18/2021
Due date:
% Done:

0%

Estimated time:

Description

Currently, my periodic monthly output looks like this:

HAMMER2 snapshots:
/: created snapshot /.monthly.20210719.00:31
/: 4 snapshot(s)
/build: created snapshot /build.monthly.20210719.00:31
/build: 4 snapshot(s)
        total                               71.22
        falsifian                           59.51
        root                                 6.15
        installer                            5.57

Security check:
    (output mailed separately)

-- End of monthly output --

Notice the lack of any header before the numbers "total 71.22" etc. It seems the message "Doing login accounting:" is being swallowed because `tee /dev/stderr` deletes existing output.

The attached patch fixes it.


Files

200.accounting.patch (523 Bytes) 200.accounting.patch falsifian, 07/18/2021 05:36 PM

Also available in: Atom PDF