I receive an error for "command substitution" when use this sendmail script.
/usr/sbin/sendmail: command substitution: line 33: syntax error near unexpected token )´ /usr/sbin/sendmail: command substitution: line 33: echo "$stdin" | head -n5 | grep -i ^to:.*@${HOSTNAME}>)´
I then removed the ">" and it was working.
I receive an error for "command substitution" when use this sendmail script.
/usr/sbin/sendmail: command substitution: line 33: syntax error near unexpected token
)´ /usr/sbin/sendmail: command substitution: line 33:echo "$stdin" | head -n5 | grep -i ^to:.*@${HOSTNAME}>)´I then removed the ">" and it was working.