Skip to content

Instantly share code, notes, and snippets.

@wrpinheiro
Last active August 29, 2015 14:22
Show Gist options
  • Save wrpinheiro/6291cf60219d838e8227 to your computer and use it in GitHub Desktop.
Save wrpinheiro/6291cf60219d838e8227 to your computer and use it in GitHub Desktop.
Check if a port from a host is accessible
curl --connect-timeout 1 www.google.com.br:81 > /dev/null 2>&1; echo $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment