in reply to Re: Parsing a specific section of a log file
in thread Parsing a specific section of a log file

I don't see why you can't do that with POE.

If you have other processing to do once in a while just add it as an event in your main POE processing daemon (which is fo example tailling a log file up to now) and fire it up as often as you wish.

Then it will hopefully take full advantage of POE's cooperative behaviour.

Honestly implementing POE is an effort (small) but as long as you build the daemon from scratch I think it's a good choice (and you don't need cron jobs..).

Anyway there is more then one way to tail a log file :)
  • Comment on Re^2: Parsing a specific section of a log file

Replies are listed 'Best First'.
Re^3: Parsing a specific section of a log file
by Moron (Curate) on Mar 01, 2007 at 12:33 UTC
    Event-driven processing is distinct from scheduled processing and consumption distribution can only be managed from scheduled processing. In addition, not every process on a system is in general written in Perl. Nor does one generally have the luxury of rewriting a system just because, say, one believes event-driven processing to be aesthetically better - that is at least how managers tend to view it.

    In my own situation, the only way I can achieve a totally event-driven version of the kind of system I work on is to pay for the development myself.

    -M

    Free your mind