Return to Snippet

Revision: 45714
at May 5, 2011 21:50 by jonathanbp


Initial Code
#!/bin/bash

while true; do
	if nc -w 1 -z $1 $2; then
		say "server $1 is responding on port $2"
		exit
	else
		echo -n "#"
		sleep 5
	fi
done

Initial URL

                                

Initial Description

                                

Initial Title
check if a machine is responding on a given port - try until it is responding then say something

Initial Tags

                                

Initial Language
Bash