From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1951 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: redirection tricks on processor invocation Date: Wed, 3 Jun 2009 08:26:58 +0200 Message-ID: <20090603062658.GB5167@skarnet.org> References: <20090602104820.GB80818@grummit.biaix.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244010361 4824 80.91.229.12 (3 Jun 2009 06:26:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2009 06:26:01 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2186-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jun 03 08:25:59 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 1MBjvB-0001Xw-RH for gcsg-supervision@gmane.org; Wed, 03 Jun 2009 08:25:57 +0200 Original-Received: (qmail 10528 invoked by uid 76); 3 Jun 2009 06:26:58 -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 10516 invoked by uid 1000); 3 Jun 2009 06:26:58 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20090602104820.GB80818@grummit.biaix.org> User-Agent: Mutt/1.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1951 Archived-At: > 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. -- Laurent