From owner-freebsd-questions@FreeBSD.ORG Sun Aug 17 20:51:34 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF17C70F for ; Sun, 17 Aug 2014 20:51:34 +0000 (UTC) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 395563118 for ; Sun, 17 Aug 2014 20:51:32 +0000 (UTC) Received: from kw.news4all.se (localhost [127.0.0.1]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id s7HKgo77070396; Sun, 17 Aug 2014 22:42:50 +0200 (CEST) (envelope-from bah@bananmonarki.se) Message-ID: <53F113CA.1030100@bananmonarki.se> Date: Sun, 17 Aug 2014 22:42:50 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Peter Ulrich Kruppa , freebsd-questions@freebsd.org Subject: Re: sh stdout/stderr redirection problem References: <53EF6979.2080708@pukruppa.de> In-Reply-To: <53EF6979.2080708@pukruppa.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2014 20:51:34 -0000 On 2014-08-16 16:23, Peter Ulrich Kruppa wrote: > Hi, > > I have got a python3.4 script which I can start from an rc.d script as a > daemon this way: > > daemon -p /var/run/my.pid /path/to/python3.4 /path/to/myscript.py > > > /path/to/python3.4 /path/to/myscript.py produces interesting messages on > stdout and stderr, so I would like to collect them in /var/log/my.log . > I have tried all kinds of combinations of >>'s and 2>&1's but either I > catch daemon's output which is nothing or the script won't start anymore. > > Any ideas? - Thanks for your help > Try man logger.