Skip to content

Instantly share code, notes, and snippets.

@ReeMii
Created February 20, 2014 11:31
Show Gist options
  • Select an option

  • Save ReeMii/9111626 to your computer and use it in GitHub Desktop.

Select an option

Save ReeMii/9111626 to your computer and use it in GitHub Desktop.
Check if service is running on remote host and port
nc example.com 587 < /dev/null; echo $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment