[Tutor] Writing to a remote file

Kent Johnson kent37 at tds.net
Fri Jun 16 19:21:59 CEST 2006


Lloyd Kvam wrote:
> On Fri, 2006-06-16 at 14:47 +0100, kieran flanagan wrote:
>> Hi
>>
>> I want to run a script on one machine and log output messages to a
>> remote file located on another machine. Is there any easy method of
>> doing this ?.

> Scanning the logging module docs, it looks like you can use it to write
> your own process to run on the remote machine to handle "logging
> messages".  Then use the logging module on the local machine to send
> "logging messages" to the remote machine.

Cool. There's even a complete example in the docs:
http://docs.python.org/lib/network-logging.html

Kent



More information about the Tutor mailing list