Somehow deleted the coproc

This commit is contained in:
Tristan Ancelet 2023-12-06 11:06:51 -06:00
parent 4873410cd2
commit b22dcd6831

View File

@ -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=(