Re: checking that process binds a port, fuser functionality

2010-08-03 Thread Roy Smith
On Aug 3, 10:32 am, Zdenek Maxa wrote: > Yes, but I need a check that certain known process's PID listens on a > defined port. connect() would certainly work, but I may end up > connecting to a different process. Then you need to define your protocol such that the client and server engage in so

Re: checking that process binds a port, fuser functionality

2010-08-03 Thread Zdenek Maxa
Original Message Subject: Re: checking that process binds a port, fuser functionality From: Roy Smith To: python-list@python.org Date: Tue Aug 03 2010 13:06:27 GMT+0200 (CEST) > In article , > Nobody wrote: > >> On Mon, 02 Aug 2010 23:27:37 +0200, Zd

Re: checking that process binds a port, fuser functionality

2010-08-03 Thread Roy Smith
In article , Nobody wrote: > On Mon, 02 Aug 2010 23:27:37 +0200, Zdenek Maxa wrote: > > > I need to start a process (using subprocess.Popen()) and wait until the > > new process either fails or successfully binds a specified port. > > If you just need to wait until *something* is listening on

Re: checking that process binds a port, fuser functionality

2010-08-03 Thread Nobody
On Mon, 02 Aug 2010 23:27:37 +0200, Zdenek Maxa wrote: > 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 hi

checking that process binds a port, fuser functionality

2010-08-02 Thread Zdenek Maxa
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 adv