From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2157 Path: news.gmane.org!not-for-mail From: Jason Dusek Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: [magic sv logging] Date: Sat, 22 Sep 2012 05:58:18 +0000 Message-ID: References: <20120922041841.GA15101@skarnet.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1348293503 11742 80.91.229.3 (22 Sep 2012 05:58:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 05:58:23 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2391-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Sep 22 07:58: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 1TFIjR-00072r-03 for gcsg-supervision@plane.gmane.org; Sat, 22 Sep 2012 07:58:25 +0200 Original-Received: (qmail 17618 invoked by uid 76); 22 Sep 2012 04:59:39 -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 17610 invoked from network); 22 Sep 2012 04:59:39 -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=kRLcHH5ijRo8ruJXQQOJcBc235gVCLvkGG3ullA2BsY=; b=PPYYOm4rXN4X1HS7PFCGoWcGW0uFJZj8BIKucFN/QG1B39gn20Vu70H3ewkrOi3ilK s+zhBQ9Bx2wXQ2dR2B9B39iikoRo5od5OqUyvT45mUS5Z+mMrWvjR4FwIpiYKKUTm5ED +6YBY9mLBv2l0aesEhvBRuAIdpvyB/p53i7/u/vuHqCAUR7w1ILILEdetYaXZdwvRMIg EJhLEhhnP+81zRM8m3ff6rD/n1iZzJ+xQboFswaMrVqnZyr+o+r6Fg6NUWUOxc6O6mRq +EdoczIyFcaNXVkPNDvd0xaDO+R7FbGeHI6o/KUF4KaSj+ZwfXayrAmTvjyVqcST+AJC 1Y3g== In-Reply-To: <20120922041841.GA15101@skarnet.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2157 Archived-At: 2012/9/22 Laurent Bercot : >> 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. > > So, instead of a relatively small processor, you fire up a big, powerful > and oversized-for-your-needs Python interpreter. ;) In this case, since further processing needs to be done with Python, there is actually less being loaded in to memory overall. The argument for tail is more aesthetic and maintenance oriented (at least for me). Since I'm "doing a tail" might as well just use tail. I happen to personally enjoy, also, programming with processes and pipes as a way of breaking down my problems. -- Jason Dusek pgp // solidsnack // C1EBC57DC55144F35460C8DF1FD4C6C1FED18A2B