spare one more little cat
This commit is contained in:
parent
fa5bfd574c
commit
2ac05cfb6f
|
@ -60,7 +60,7 @@ echo -e "\n---------- END ----------"
|
||||||
# If there is an email specified, mail it
|
# If there is an email specified, mail it
|
||||||
if [ ! "x$email" == "x" -a ! "$email" == "null" ] ; then
|
if [ ! "x$email" == "x" -a ! "$email" == "null" ] ; then
|
||||||
date=$(date +%x\ %X)
|
date=$(date +%x\ %X)
|
||||||
cat "$tmpfile" | mailx -s "AlternC Cron #$id - Report $date" -a "From: noreply@$FQDN" "$(urldecode $email)"
|
mailx -s "AlternC Cron #$id - Report $date" -a "From: noreply@$FQDN" "$(urldecode $email)" < "$tmpfile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f "$tmpfile"
|
rm -f "$tmpfile"
|
||||||
|
|
Loading…
Reference in New Issue