This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NB=$(/usr/sbin/postqueue -p | wc -l) | |
[email protected] | |
MAIL="/tmp/mailspam" | |
LIMIT=600 | |
echo START CHECKING SPAM $(date) > $MAIL | |
echo "" >> $MAIL | |
if [ $NB -gt $LIMIT ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# BACKUP SCRIPT | |
CONTACT="[email protected]" | |
MAIL="/tmp/mail" | |
if [ -e "/var/lock/backup.lock" ] | |
then | |
echo " BACKUP ALREADY STARTED !!" > $MAIL |