From f829028ddf6fc9f852465ab518092732222aac05 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 7 Feb 2017 23:34:55 -0600 Subject: [PATCH] re-enable the logfile --- checkMail.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/checkMail.sh b/checkMail.sh index 297e3ed..8a278d7 100755 --- a/checkMail.sh +++ b/checkMail.sh @@ -4,7 +4,7 @@ testhost=webthink.net testuser=webmaster@${testhost} -#logfile=~/mailqueryfail.log +logfile=~/checkMailQueryfail.log mail=$1 hostPart=${mail/*@/} @@ -39,10 +39,10 @@ EOE ) | expect -f - | grep -e '^5') if [ -z "${result}" ] -then echo "OK : " $mail >> /dev/null # $logfile +then echo "`date` - OK : " $mail >> $logfile echo -e "{\"status\":\"ok\"}" exit 0 -else echo $mail ":" $result >> /dev/null # $logfile +else echo "`date` - ERR : " $mail ":" $result >> $logfile echo -e "{\"status\":\"err\", \"error\":\"Unknown username for this e-mail provider.\"}" exit 1 fi