Sounds like your project would be appropriate for twisted.  You&#39;ll have the easiest time if the reading and writing can each be implemented as a separate process (independent of other jobs on the machines).  Be sure to read the following documentation:<div>

<br></div><div><a href="http://twistedmatrix.com/documents/current/core/howto/servers.html">http://twistedmatrix.com/documents/current/core/howto/servers.html</a></div><div><a href="http://twistedmatrix.com/documents/current/core/howto/clients.html">http://twistedmatrix.com/documents/current/core/howto/clients.html</a></div>

<div><a href="http://twistedmatrix.com/documents/current/core/howto/defer.html">http://twistedmatrix.com/documents/current/core/howto/defer.html</a></div><div><br></div><div>Here are references you&#39;ll likely make use of:</div>

<div><br></div><div><a href="http://twistedmatrix.com/documents/current/api/twisted.protocols.basic.LineReceiver.html">http://twistedmatrix.com/documents/current/api/twisted.protocols.basic.LineReceiver.html</a></div><div>

<a href="http://twistedmatrix.com/documents/current/api/twisted.internet.protocol.ReconnectingClientFactory.html">http://twistedmatrix.com/documents/current/api/twisted.internet.protocol.ReconnectingClientFactory.html</a></div>

<div><br></div><div>I wonder if using a ProcessProtocol (<a href="http://twistedmatrix.com/documents/current/core/howto/process.html">http://twistedmatrix.com/documents/current/core/howto/process.html</a>) with &quot;tail -f&quot; would be an option for monitoring changes to the log(s)?  Though, this may not be robust to failure (how to do you find the place where you left off if the watching process dies unexpectedly?)  I&#39;m not very familiar with twisted file-related code, but, the &quot;fdesc&quot; module might be useful:</div>

<div><br></div><div><a href="http://twistedmatrix.com/documents/current/api/twisted.internet.fdesc.html">http://twistedmatrix.com/documents/current/api/twisted.internet.fdesc.html</a></div><div><br></div><div>Do any twisted experts have recommendations for monitoring changes to a file?</div>

<div><br></div><div>Victor, let me suggest that you explore whether twisted can satisfy all your requirements before you start coding as it is can be nontrivial to use twisted with non-twisted-friendly libraries.</div><div>

<br></div><div>Cheers,</div><div><br></div><div>Jason</div><div><br></div>