wait for ssh, then act

user=lebi; host=blackfrog.local; until nc -vzw 2 $host 22; do sleep 2; done; ssh -Y -t $user@$host windows-reboot.sh

Comments are closed.