I want to conditionally output from the bash command. for example

telnet localhost 25
220 localhost.localdomain ESMTP Postfix

#! / bin / bash
COMMAND = `telnet localhost 25`
if ["$ COMMAND" == "220 localhost.localdomain ESMTP Postfix"]
echo "postfix ok"
else
echo "postfix error"


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/cahg8teaf4sc5ygc7kem6fudghqxtom5okchtef0c1m1lbb6...@mail.gmail.com

Reply via email to