7 lines
188 B
Text
Executable file
7 lines
188 B
Text
Executable file
if [ $# -ne 2 ]
|
|
then
|
|
echo "Hostname and port of the service was not specified"
|
|
exit 1
|
|
fi
|
|
|
|
while ! nc -z $1 $2; do echo "Not yet available, waiting" && sleep 1; done; echo "Done"
|