supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Jason Dusek <jason.dusek@gmail.com>
To: Mike Buland <xagafinelle@gmail.com>
Cc: supervision@list.skarnet.org
Subject: Re: [magic sv logging]
Date: Fri, 21 Sep 2012 15:35:41 +0000	[thread overview]
Message-ID: <CAO3NbwMmsH3S_cCowj=YztEt3y1KyNq54BZhXGejsjQKx4r7jA@mail.gmail.com> (raw)
In-Reply-To: <CAK2oqq+=i2yp+UrKmf63UXq2bEUjWZibOBdkkhj_unVSnOot7Q@mail.gmail.com>

2012/9/21 Mike Buland <xagafinelle@gmail.com>:
> You haven't missed anything, well, it's more like "tail --follow=name
> <file>' but instead of piping the output of tail into another program for
> processing, this just does all the work in python.  Not only was it fun to
> write, but I like the fact that I don't need to chain more programs
> together.

Surely you could start `tail' with the subprocess module and
process its output line-by-line?

--
Jason Dusek
pgp // solidsnack // C1EBC57DC55144F35460C8DF1FD4C6C1FED18A2B


  reply	other threads:[~2012-09-21 15:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20 23:35 Sergiusz Pawlowicz
2012-09-21  2:25 ` Mike Buland
2012-09-21 15:29   ` Lorenzo Beretta
2012-09-21 15:32     ` Mike Buland
2012-09-21 15:35       ` Jason Dusek [this message]
2012-09-21 15:38         ` Mike Buland
2012-09-22  4:18       ` Laurent Bercot
2012-09-22  5:58         ` Jason Dusek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAO3NbwMmsH3S_cCowj=YztEt3y1KyNq54BZhXGejsjQKx4r7jA@mail.gmail.com' \
    --to=jason.dusek@gmail.com \
    --cc=supervision@list.skarnet.org \
    --cc=xagafinelle@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).