checking that process binds a port, fuser functionality

Zdenek Maxa zdenekmaxa at yahoo.co.uk
Mon Aug 2 17:27:37 EDT 2010


Hello,

I need to start a process (using subprocess.Popen()) and wait until the
new process either fails or successfully binds a specified port. The
fuser command seems to be indented exactly for this purpose. Could
anyone please provided a hint to a handy Python library to do this or
would the advice be to parse fuser command output?

This needs to happen on Linux and Python 2.4.

Thanks a lot in advance.

Zdenek



More information about the Python-list mailing list