This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function help { | |
echo "Usage: wait-for port [timeout]" | |
echo " port is a TCP port number, or the service name (for instance http, ssh)" | |
echo " timeout is expressed in seconds" | |
echo " optional (defaulted to 30)" | |
echo " if <= 0, no timeout" | |
exit 1 | |
} |