multiprocessing and accessing server's stdout

Adam Tauno Williams awilliam at whitemice.org
Wed May 26 16:52:52 EDT 2010


On Wed, 2010-05-26 at 11:47 -0700, Tim Arnold wrote:
> Hi,
> I'm using multiprocessing's BaseManager to create a server on one
> machine and a client on another. The client fires a request and the
> server does some work, the result of which ends up on a shared file
> system that both the client and server can see.
> However, I need the client machine to see the stdout of the process
> running on the server. Not sure this is doable--I've been unable to
> google anything useful on this one.

Nope, it isn't.  Don't use stdout, use an IPC mechanism to communicate
between the client and the server if you need feedback.
-- 
Adam Tauno Williams <awilliam at whitemice.org> LPIC-1, Novell CLA
<http://www.whitemiceconsulting.com>
OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba




More information about the Python-list mailing list