victories adlı üyeden alıntı: mesajı görüntüle
SERVER=ipadresi yerine SERVER=localhost deneyin.
AndyCap adlı üyeden alıntı: mesajı görüntüle
@Squit sorumu yine tekrarlıyorum.

Scripti nasıl çalıştırıyorsunuz, uyguladığınız komutu görebilir miyim?
nc -zv 127.0.0.1 3306 < /dev/null; echo $?
if [ $? == "0" ]; then
    echo "Telnet accepting connections"
else
    echo "Telnet connections not possible"
fi
bu scripti ./kontrol.sh - sh kontrol.sh

başına bin/bash - bin/sh ekledim hepsinde denedim hepsinde ise aldığım hata

Syntax error: "fi" unexpected (expecting "then")

bu