Created
October 10, 2015 22:57
-
-
Save ndelitski/e40aaa3fe3c9c55cefb4 to your computer and use it in GitHub Desktop.
test port on the host
Will output 0 if port 123 is open, and 1 if it's closed.
This file contains 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
nc 127.0.0.1 123 < /dev/null; echo $? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment