From 09a22dc92982a0560e24e861249381c4688a5b55 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 29 Jun 2008 18:08:26 +0200 Subject: [PATCH] add crontab rule to remove empty files after one day --- .crontab.d/base | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.crontab.d/base b/.crontab.d/base index 91c5979..0cdce43 100644 --- a/.crontab.d/base +++ b/.crontab.d/base @@ -1,5 +1,6 @@ SHELL=/bin/zsh MAILTO=madduck+crontab -38 4 * * * [[ -d $TMPDIR ]] && zargs --no-run-if-empty -- $TMPDIR/**/*(NDa+28) -- rm --one-file-system -- -48 4 * * * [[ -d $TMPDIR ]] && zargs --no-run-if-empty -- $TMPDIR/**/*(ND/m+28^F) -- rmdir -- +28 4 * * * [[ -d $TMPDIR ]] && autoload -U zargs && zargs --no-run-if-empty -- $TMPDIR/*(NDa+1L0) -- rm --one-file-system -- +38 4 * * * [[ -d $TMPDIR ]] && autoload -U zargs && zargs --no-run-if-empty -- $TMPDIR/**/*(NDa+28) -- rm --one-file-system -- +48 4 * * * [[ -d $TMPDIR ]] && autoload -U zargs && zargs --no-run-if-empty -- $TMPDIR/**/*(ND/m+28^F) -- rmdir -- -- 2.39.5