pika_mail_error_info.sh 479 Bytes
Newer Older
fwinkler's avatar
fwinkler committed
1 2 3 4 5 6 7 8 9 10
#!/bin/bash

ERROR_COLLECTION_PATH=/sw/taurus/tools/pika/logs/$(date +"%d-%m-%Y")
SUBJECT="[PIKA] found erros"

# send email 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 <<< $ERROR_COLLECTION_PATH
  mail -S smtp=mailin5.zih.tu-dresden.de -s "$SUBJECT" -r $HOSTNAME@taurus.hrsk.tu-dresden.de robert.dietrich@tu-dresden.de <<< $ERROR_COLLECTION_PATH
fi