First, to install it:
# wget -O /usr/local/bin/cronic http://habilis.net/cronic/cronicNow to use it, edit your cron scripts to use cronic as a wrapper. Before:
...
# chmod 755 /usr/local/bin/cronic
# cat /etc/cron.daily/backup-web-serverAnd after:
#!/bin/sh
/usr/local/bin/backup-web-server.py /etc/backup-web-server.conf
# vi /etc/cron.daily/backup-webserverThat's it. Now unless your cron job either has output to stderr or returns non-zero, it will produce no output.
# cat /etc/cron.daily/backup-web-server
#!/bin/sh
/usr/local/bin/cronic /usr/local/bin/backup-web-server.py /etc/backup-web-server.conf
No comments:
Post a Comment