From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2155 Path: news.gmane.org!not-for-mail From: Mike Buland Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: [magic sv logging] Date: Fri, 21 Sep 2012 09:38:15 -0600 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae934126347c68904ca380775 X-Trace: ger.gmane.org 1348241904 23554 80.91.229.3 (21 Sep 2012 15:38:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2012 15:38:24 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2389-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Sep 21 17:38:28 2012 Return-path: Envelope-to: gcsg-supervision@plane.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TF5J7-0003Ye-Fc for gcsg-supervision@plane.gmane.org; Fri, 21 Sep 2012 17:38:21 +0200 Original-Received: (qmail 11744 invoked by uid 76); 21 Sep 2012 14:39:36 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 11736 invoked from network); 21 Sep 2012 14:39:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1En9HAx6s1fgBVBytRcTcWMoYtgYJc0snDsVt/uk/UQ=; b=PAP3xxdBfmiSvwBlpThFi05FGwLzJ+5fQvmUdUKZzXbGZkKviXS1guD9CydRKX1A2m GcKAsQExLGAeup2jqjwfq38j5TDskYh+2zNXB73wj+aPRf6Ass+YTcsLdHDtyI4l5x3E kT4HRRPtyfuzD3Vjlx0DzqhtwoF+02scw2V3T0/1h5Dh4ZAX/AVeFjVF2L8Ra8++TVad frXruMnUrMQbg+DK6Xg4zSaixjjgy3Lph8qa7cXPnRTYY0cTwUtw6n8IeRmVPxAQ+kdG ZykShGwlfyCEtRWy0863ND93YZ44CvXxCnhyPz86N0ztqIcVXiuW+SXW6Nox4MoNDOBg FSjg== In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2155 Archived-At: --14dae934126347c68904ca380775 Content-Type: text/plain; charset=ISO-8859-1 yeah, I could have done that too, but...I'm happy, and so is Sergiusz. I guess I don't see the problem. I was mistaken, this is very much like tail -F, I just didn't read that very carefully. The biggest difference is that this reads the entire file initially instead of starting near the end. (yes, you could easily do that with tail too). On Fri, Sep 21, 2012 at 9:35 AM, Jason Dusek wrote: > 2012/9/21 Mike Buland : > > You haven't missed anything, well, it's more like "tail --follow=name > > ' 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 > --14dae934126347c68904ca380775--