From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1950 Path: news.gmane.org!not-for-mail From: Joan Picanyol i Puig Newsgroups: gmane.comp.sysutils.supervision.general Subject: redirection tricks on processor invocation Date: Tue, 2 Jun 2009 12:48:20 +0200 Message-ID: <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 1243939639 31199 80.91.229.12 (2 Jun 2009 10:47:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2009 10:47:19 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2185-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jun 02 12:47:17 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 1MBRWW-0002i9-Uh for gcsg-supervision@gmane.org; Tue, 02 Jun 2009 12:47:17 +0200 Original-Received: (qmail 4192 invoked by uid 76); 2 Jun 2009 10:48:13 -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 4178 invoked from network); 2 Jun 2009 10:48:13 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline User-Agent: Mutt/1.5.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1950 Archived-At: Dear all, I have an application that generates aggregate reports from separate log streams. In order to avoid loosing data, it should be invoked as a processor from all of it's sources log directories. The application reads from stdin (and thus know what stream it is called from and what other streams should look at). However, I don't the resultant log file to be altered (since I must archive it for auditing purposes). I've been struggling to find the correct fd copying and redirections so that whenever runit feeds @*.u to my processor a copy of it is sent to stdout (the application writes to a separate location), but to no avail. In summary, I want a copy of my processor's stdin to be seen by svlogd as my processor's stdout. Any ideas? tks -- pica