From b22dcd6831d47450d32dbdd56eaaac3b3d7f839c Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Wed, 6 Dec 2023 11:06:51 -0600 Subject: [PATCH] Somehow deleted the coproc --- check-postfix.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/check-postfix.sh b/check-postfix.sh index f6782e3..07d2599 100755 --- a/check-postfix.sh +++ b/check-postfix.sh @@ -64,6 +64,7 @@ do_emergency_email () { MAILSERVER=`dig $DOMAIN mx | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | head -n 1` ## Setting up coprocess to send commands to telnet session coproc TELNET { telnet $MAILSERVER 25; } + coproc TELNET { telnet $MAILSERVER 25; } ## Commands to send email manually local -a commands=(