test.sh 298 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash

MSG=$(/usr/scripts/lc_ldap/test.py --mail | grep -v OK$)
TO="roots@crans.org"
#TO="samir@crans.org"
FROM="respbats@crans.org"
SUBJECT="Erreur dans les tests lc_ldap sur la base de test"
if [ -n "$MSG" ]; then
sendmail "$TO" << EOF
From: $FROM
To: $TO
Subject: $SUBJECT

$MSG
.
EOF
fi;