From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1231 Path: news.gmane.org!not-for-mail From: "George Georgalis" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Filtering socklog output revisited Date: Fri, 1 Sep 2006 11:16:04 -0400 Message-ID: <20060901151604.GE10960@run.galis.org> References: <20060828054124.GB12147@home.power> <20060830011813.GB6449@home.power> <20060830012814.GK3979@run.galis.org> <20060830024505.GC6449@home.power> <20060830031052.GA3462@skarnet.org> <20060830144632.GM3979@run.galis.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157123790 29559 80.91.229.2 (1 Sep 2006 15:16:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Sep 2006 15:16:30 +0000 (UTC) Original-X-From: supervision-return-1467-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Sep 01 17:16:26 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1GJAkZ-0002EZ-7w for gcsg-supervision@gmane.org; Fri, 01 Sep 2006 17:16:09 +0200 Original-Received: (qmail 18882 invoked by uid 76); 1 Sep 2006 15:16:27 -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 18877 invoked from network); 1 Sep 2006 15:16:27 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060830144632.GM3979@run.galis.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1231 Archived-At: On Wed, Aug 30, 2006 at 10:46:32AM -0400, George Georgalis wrote: >On Wed, Aug 30, 2006 at 05:10:52AM +0200, Laurent Bercot wrote: >> Why, what you need here is execline. :) >> http://www.skarnet.org/software/execline/pipeline.html > >That looks pretty interesting. > >How would you use it to read (and conditionally process) fd1 >within a program (wrapper) that also reads fd0 and does a >conditional exec with a fd0 and fd1 hand-off to a secondary >program (qmail-queue)? I don't see any way (with redirection) to use pipeline to manage fd1 input within a script that already uses fd0 input. Seems like a good c program, read input from an arbitrary fd specified as a command line switch and pipe to stdout (where it can be directed to an arbitrary fd, with the shell). Seems all the shell redirection methods for "input" work on a file. Or, is there a technique I'm missing? // George -- George Georgalis, systems architect, administrator <