From owner-freebsd-questions@FreeBSD.ORG Thu Mar 19 18:54:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA5F01065673 for ; Thu, 19 Mar 2009 18:54:27 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from exprod7og113.obsmtp.com (exprod7og113.obsmtp.com [64.18.2.179]) by mx1.freebsd.org (Postfix) with SMTP id 751048FC1B for ; Thu, 19 Mar 2009 18:54:27 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from source ([209.85.198.251]) by exprod7ob113.postini.com ([64.18.6.12]) with SMTP ID DSNKScKU4vs3PU6erbwUW4CHCvd4xlZc+FNE@postini.com; Thu, 19 Mar 2009 11:54:27 PDT Received: by rv-out-0708.google.com with SMTP id k29so687253rvb.54 for ; Thu, 19 Mar 2009 11:54:26 -0700 (PDT) Received: by 10.141.198.2 with SMTP id a2mr929292rvq.207.1237488866513; Thu, 19 Mar 2009 11:54:26 -0700 (PDT) Received: from localhost ([76.231.178.131]) by mx.google.com with ESMTPS id c20sm3019130rvf.50.2009.03.19.11.54.26 (version=SSLv3 cipher=RC4-MD5); Thu, 19 Mar 2009 11:54:26 -0700 (PDT) Date: Thu, 19 Mar 2009 11:53:40 -0700 (PDT) From: Peter Steele To: freebsd-questions@freebsd.org Message-ID: <18512484.241237488817240.JavaMail.HALO$@halo> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Why does devd not capture stdout? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 18:54:28 -0000 I've created an autorun facility for USB drives using devd. I have the following addition in devd.conf: attach 10 { match "device-name" "umass0"; action "/usr/local/bin/autorun >/var/log/autorun.log 2>&1 &"; }; This works perfectly except only stderr messages appear in the autorun.log file; stdout messages are lost. If I run the same command manually: /usr/local/bin/autorun >/var/log/autorun.log 2>&1 then stdout messages are captured in autorun.log as expected. What would cause this problem?