From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1953 Path: news.gmane.org!not-for-mail From: Joan Picanyol i Puig Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: redirection tricks on processor invocation Date: Wed, 3 Jun 2009 12:31:01 +0200 Message-ID: <20090603103101.GA26521@grummit.biaix.org> References: <20090602104820.GB80818@grummit.biaix.org> <20090603062658.GB5167@skarnet.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244024995 15387 80.91.229.12 (3 Jun 2009 10:29:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2009 10:29:55 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2188-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jun 03 12:29:53 2009 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1MBnjF-00041f-AV for gcsg-supervision@gmane.org; Wed, 03 Jun 2009 12:29:53 +0200 Original-Received: (qmail 6415 invoked by uid 76); 3 Jun 2009 10:30:53 -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 6406 invoked from network); 3 Jun 2009 10:30:52 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20090603062658.GB5167@skarnet.org> User-Agent: Mutt/1.5.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1953 Archived-At: * Laurent Bercot [20090603 08:27]: > > In summary, I want a copy of my processor's stdin to be seen by svlogd > > as my processor's stdout. Any ideas? > > Use multitee: http://code.dogmap.org/fdtools/multitee/ > > Your processor could be, for instance, if you have execline installed: > exec execlineb -c " > piperw 6 7 > background { fdclose 7 fdmove 0 6 yourapplication } > fdclose 6 > multitee 0-1,7 > " > > which copies stdin to stdout untouched, but also feeds a copy of > stdin to yourapplication's stdin. That's exactly what I want. Given that piperw apparently has no shell equivalent without a named pipe I guess it's time for me to bite the bullet and just use skalibs. tks -- pica