From: martin f. krafft Date: Sun, 29 Jun 2008 16:08:26 +0000 (+0200) Subject: add crontab rule to remove empty files after one day X-Git-Url: https://git.madduck.net/etc/crontab.git/commitdiff_plain/09a22dc92982a0560e24e861249381c4688a5b55?ds=inline add crontab rule to remove empty files after one day --- 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 --