SERVER=ipadresi yerine SERVER=localhost deneyin.
@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"
fibu 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