title: How do I determine if a port is in use, e.g. via netstat?
body: <p>I am trying to check port availability and get a return value using shell script. Example: if port 8080 is free then return true, else return false. Can anyone help? I tried with <code>netstat</code>.</p>