Check if the port is open

Check if the port is open by nc, exiting with 0 on success, 1 on failure.



For a quick interactive check (with a 8 seconds timeout):



nc -z -v -w8 <host> <port>

Comments

Popular posts from this blog

Check MySQL query history from command line