Created
February 13, 2015 04:52
-
-
Save unixnut/b57949f3781ac7bd99e5 to your computer and use it in GitHub Desktop.
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
if nc -z localhost http | |
then | |
echo port is open | |
else | |
echo port is closed | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment