diff --git a/daemon/logrotate/pika_mail_error_info.sh b/daemon/logrotate/pika_mail_error_info.sh index 293f478d8ace6778431222eec911506db5486566..6606a27bfd2db7ac97b8ec8da629c3e94aedb928 100755 --- a/daemon/logrotate/pika_mail_error_info.sh +++ b/daemon/logrotate/pika_mail_error_info.sh @@ -1,7 +1,7 @@ #!/bin/bash ERROR_COLLECTION_PATH=/sw/taurus/tools/pika/logs/$(date +"%d-%m-%Y") -SUBJECT="[PIKA] found erros" +SUBJECT="[PIKA] found errors" MESSAGE=/tmp/pika_email_message touch $MESSAGE @@ -13,7 +13,7 @@ echo "Number of nodes containing errors: ${ERROR_COUNT}" >> $MESSAGE echo "" >> $MESSAGE ls -1 >> $MESSAGE -# send if email log exists +# send email if log exists if [ -d "$ERROR_COLLECTION_PATH" ]; then mail -S smtp=mailin5.zih.tu-dresden.de -s "$SUBJECT" -r $HOSTNAME@taurus.hrsk.tu-dresden.de frank.winkler@tu-dresden.de < $MESSAGE mail -S smtp=mailin5.zih.tu-dresden.de -s "$SUBJECT" -r $HOSTNAME@taurus.hrsk.tu-dresden.de robert.dietrich@tu-dresden.de < $MESSAGE