]> git.madduck.net Git - etc/crontab.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add crontab rule to remove empty files after one day
authormartin f. krafft <madduck@madduck.net>
Sun, 29 Jun 2008 16:08:26 +0000 (18:08 +0200)
committermartin f. krafft <madduck@madduck.net>
Sun, 29 Jun 2008 16:08:26 +0000 (18:08 +0200)
.crontab.d/base

index 91c5979e4c827ec88c3835723d9e774bd59de20a..0cdce433f25c3437d02c0ccf7849db855df6e38f 100644 (file)
@@ -1,5 +1,6 @@
 SHELL=/bin/zsh
 MAILTO=madduck+crontab
 
 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 --