Check if a port is open or not (linux)