From owner-freebsd-hackers Fri Sep 1 5: 3:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sentinel.office1.bg (sentinel.office1.bg [195.24.48.182]) by hub.freebsd.org (Postfix) with SMTP id 3B33637B424 for ; Fri, 1 Sep 2000 05:03:17 -0700 (PDT) Received: (qmail 49172 invoked by uid 1001); 1 Sep 2000 11:59:48 -0000 Date: Fri, 1 Sep 2000 14:59:48 +0300 From: Peter Pentchev To: Alexander Maret Cc: "'freebsd-hackers@freebsd.org'" Subject: Re: Redirect stdout/stderr to syslog [OFF-TOPIC] Message-ID: <20000901145948.I46859@ringwraith.office1.bg> References: <58A002A02C5ED311812E0050044517F00D25DA@erlangen01.atrada.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <58A002A02C5ED311812E0050044517F00D25DA@erlangen01.atrada.de>; from maret@atrada.net on Fri, Sep 01, 2000 at 01:58:56PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG man 1 logger pipe your stdout/stderr to logger(1), and you're all set. You may even specify a facility/level to log with. G'luck, Peter -- What would this sentence be like if pi were 3? On Fri, Sep 01, 2000 at 01:58:56PM +0200, Alexander Maret wrote: > Hi, > > I wonder if it is possible to redirect stdout/stderr to syslog. > > Background: > I'm writing a program which starts (fork=>execvp) and observes > another program. I would like to redirect all output of the "execvped" > program to syslog. > > I know this is not really FBSD related but I hope you can help > me anyway. Please don't tell me that I should redirect the output > to a file and not to syslog. I know how to redirect the output to > a file (that's my prog doing at present state). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message