File: cron.weekly

package info (click to toggle)
efax 1%3A0.9a-20
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 452 kB
  • sloc: ansic: 4,629; sh: 932; makefile: 77
file content (12 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# cron script to delete efax logfiles that are older than six weeks
#
# Written by Dirk Eddelbuettel <edd@qed.econ.queensu.ca>       

[ -e /usr/bin/efax ] || exit 0

nice find /var/spool/fax /var/log/efax -type f -name \*.efax.log -mtime +42 -print0 |\
	xargs -0r rm -f

exit 0