netcat -z ${MACHINE} 23 if [ $? -eq 0 ] then echo "Telnet accepting connections" else echo "Telnet connections not possible" fi
exec 3>/dev/tcp/${MACHINE}/23