Re: [Twisted-Python] deciding to use twisted or not

2009-09-06 Thread Martin-Louis Bright
Brilliant! Thank you. -martin On Sun, Sep 6, 2009 at 10:46 AM, Alexandre Quessy wrote: > Hi ! > You might want to look at my implementation of a tail -F : > https://svn.sat.qc.ca/trac/miville/browser/trunk/py/miville/utils/tail.py > Let me know if you have better than that. > a > > 2009/9/1 Rob Ho

Re: [Twisted-Python] deciding to use twisted or not

2009-09-06 Thread Alexandre Quessy
Hi ! You might want to look at my implementation of a tail -F : https://svn.sat.qc.ca/trac/miville/browser/trunk/py/miville/utils/tail.py Let me know if you have better than that. a 2009/9/1 Rob Hoadley : > I've handled this problem 2 ways: 1) for almost realtime... using > twisted and .read() fil

Re: [Twisted-Python] deciding to use twisted or not

2009-09-01 Thread Rob Hoadley
I've handled this problem 2 ways: 1) for almost realtime... using twisted and .read() file as glyph mentioned and 2) used splunk and it's functionality to send search "matching" data to a program that in turn does http notification. This is at 5 min search intervals. As previous posters have ment

Re: [Twisted-Python] deciding to use twisted or not

2009-09-01 Thread Martin-Louis Bright
PyInotify only allows you to detect file changes, leaving you with the task of asynchronously sending http requests. -martin On Thu, Aug 27, 2009 at 12:19 PM, Mikhail wrote: > Martin-Louis Bright gmail.com> writes: > > > > > > > I am using linux, and I want the daemon to be as responsive as po

Re: [Twisted-Python] deciding to use twisted or not

2009-08-27 Thread Mikhail
Martin-Louis Bright gmail.com> writes: > > > I am using linux, and I want the daemon to be as responsive as possible to log events, so I think I would rather have it sit on the same box as where the log is produced. (Perhaps I'm wrong about this?) So I'm going to try Cary's ProcessProtocol appr

Re: [Twisted-Python] deciding to use twisted or not

2009-08-27 Thread Martin-Louis Bright
I am using linux, and I want the daemon to be as responsive as possible to log events, so I think I would rather have it sit on the same box as where the log is produced. (Perhaps I'm wrong about this?) So I'm going to try Cary's ProcessProtocol approach, and if that doesn't work, Glyph's LoopingCa

Re: [Twisted-Python] deciding to use twisted or not

2009-08-27 Thread Chris Adams
If you're using a linux based system, you may have some luck setting up syslogger to forward logging packets to the remote ip address, and running the twisted daemon on the other box, and sending notifications if the heartbeat from the monitored machine stops. I was working on a project recently t

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Martin-Louis Bright
Thanks! Your advice is much appreciated. martin On Wed, Aug 26, 2009 at 10:08 PM, Glyph Lefkowitz wrote: > On Wed, Aug 26, 2009 at 9:54 PM, Cary Hull wrote: > >> It would certainly be nice if Twisted supported async file io, but in this >> case wouldn't a ProcessProtocol around 'tail -f' be a g

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Glyph Lefkowitz
On Wed, Aug 26, 2009 at 9:54 PM, Cary Hull wrote: > It would certainly be nice if Twisted supported async file io, but in this > case wouldn't a ProcessProtocol around 'tail -f' be a good solution as well? > That could work, but there are a few potential issues. 'tail' does slightly different s

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Cary Hull
On Wed, Aug 26, 2009 at 6:41 PM, Glyph Lefkowitz wrote: > On Wed, Aug 26, 2009 at 4:56 PM, Martin-Louis Bright > wrote: > >> I would like to write a small daemon that monitors (tails) a server log, >> parses the entries and sends HTTP requests based on some of those entries. I >> would like it if

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Glyph Lefkowitz
On Wed, Aug 26, 2009 at 4:56 PM, Martin-Louis Bright wrote: > I would like to write a small daemon that monitors (tails) a server log, > parses the entries and sends HTTP requests based on some of those entries. I > would like it if the reading of the log file and the sending of http > requests we

[Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Martin-Louis Bright
Hi! I would like to write a small daemon that monitors (tails) a server log, parses the entries and sends HTTP requests based on some of those entries. I would like it if the reading of the log file and the sending of http requests were asynchronous. Should I use twisted for this? Or is twisted ov