Skip to content

Instantly share code, notes, and snippets.

Frédéric Menou ptitfred

  • FretLink
  • Paris, France
Block or report user

Report or block ptitfred

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ptitfred /
Created Feb 9, 2012
Wait for a TCP port to be open
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
You can’t perform that action at this time.