2015 shaares
45 private links
45 private links
while [ "$(timeout 2 telnet 192.168.0.1 3389 2>&1| grep -c Connected)" -ne "1" ];do sleep 2;done;notify-send "port 3389 TSE sur 192.168.0.1 est ouvert !"
while [ "$(timeout 2 ping 192.168.0.1 -c 1 | grep -c '1 received')" -ne "1" ];do sleep 2;done;notify-send "ping ok sur 192.168.0.1"