cron.daily.ex
author Heiko Schlittermann <hs@schlittermann.de>
Sat, 04 Jun 2016 22:08:13 +0200
changeset 71 46ba051d29bd
parent 49 3e57c577c01e
permissions -rw-r--r--
[perltidy] test
43
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     1
#! /bin/bash
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     2
49
3e57c577c01e - cron: check existence of exigrey first
heiko
parents: 43
diff changeset
     3
command -v exigrey >/dev/null || exit 0
3e57c577c01e - cron: check existence of exigrey first
heiko
parents: 43
diff changeset
     4
43
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     5
# only output if terminal is connected
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     6
test -t 0 || exec >/dev/null
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     7
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     8
exigrey --clean 3 '*'
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     9
exigrey --purge 5 '*'