Re: Reading then sending new parts of a log file

2009-06-24 Thread Dave Angel
Chuck Connors wrote: Hey guys. I'm trying to work up a little program that will send any new lines written to a file (log file from my home automation software) to me via instant message. I've gotten the instant message sending part figured out using xmpppy. I've done a few things with Python

Re: Reading then sending new parts of a log file

2009-06-24 Thread Chuck Connors
On Jun 24, 2:48 pm, unayok wrote: > Here's a little nudge:http://code.activestate.com/recipes/157035/ > > In place of its "print" line, you'd make your call into your existing > code to send the message. Wow! Thanks for the _shove_ in the right direction. Looks perfect. -- http://mail.python.o

Re: Reading then sending new parts of a log file

2009-06-24 Thread unayok
On Jun 24, 10:23 am, Chuck Connors wrote: > Hey guys.  I'm trying to work up a little program that will send any > new lines written to a file (log file from my home automation > software) to me via instant message.  I've gotten the instant message > sending part figured out using xmpppy. > > I've

Re: Reading then sending new parts of a log file

2009-06-24 Thread Chuck Connors
On Jun 24, 11:57 am, Scott David Daniels wrote: > What OS and version, what Python and version. Win XP, Python 2.6.2 -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading then sending new parts of a log file

2009-06-24 Thread Scott David Daniels
Chuck Connors wrote: Hey guys. I'm trying to work up a little program that will send any new lines written to a file (log file from my home automation software) to me via instant message. I've gotten the instant message sending part figured out using xmpppy. I've done a few things with Python