From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6130 216.105.38.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 49DB31F453 for ; Mon, 5 Nov 2018 16:13:35 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1gJhVG-00058L-Nw; Mon, 05 Nov 2018 16:13:26 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gJhVF-00058A-CI for sox-users@lists.sourceforge.net; Mon, 05 Nov 2018 16:13:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wr5k4AhVteGF+YxJdwkyJxJlM0Fj7O3LX9wseTjeMWM=; b=FdvQl0Cqqy/NM3IED24lyxVsYj TD9YFlR2b7viFz9tLp5xHQHeCk71C9foTg61rw1gcQ401Rv58VA8ic37RKNFGc0X9Irx8Lt1EBZno GlHvpla1euCVPvEA2jGNnlZ32gycKHQzXrNFqFBp8mV51NeyAx9P1e0zz7tF4MaDTUf4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=wr5k4AhVteGF+YxJdwkyJxJlM0Fj7O3LX9wseTjeMWM=; b=iM3ANd4sCbpBv/uREubXPpRfPd KP5Nc8SxHU5rOh5/DmrErRMWu0a0Agz9oBSozkYEcSwudeTncwY/gA7Ef/wKW+CxhYxmmTxNDWQ5F 4WTNT1Toc6dhuoaA/hvcPwf/NnGjMB5T5MrCMRCGzFpvjl/pMUwfM+lcbb3UVGVM+Knk=; Received: from unicorn.mansr.com ([81.2.72.234]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1gJhUx-001vet-Dh for sox-users@lists.sourceforge.net; Mon, 05 Nov 2018 16:13:25 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 33A02160E5; Mon, 5 Nov 2018 15:54:50 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Rob Robinett References: Date: Mon, 05 Nov 2018 15:54:50 +0000 In-Reply-To: (Rob Robinett's message of "Sun, 4 Nov 2018 17:25:37 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1gJhUx-001vet-Dh Subject: Re: sox won't write output file when run in spawned shell X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Cc: sox-users@lists.sourceforge.net Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-users-bounces@lists.sourceforge.net Rob Robinett writes: > Hi, > > I am trying to us sox as part of an RF signal processing daemon on a > Raspberry Pi 3B Stretch. When I execute sox from a terminal command line > the output file is created, but when I spawn the command it runs but > doesn't create the output file: > > runs and creates '0.wav': sox -r 32k -t raw -e s -b 16 -c 1 > 0.raw -r 12k 0.wav > runs but doesn't create '0.wav': sox -r 32k -t raw -e s -b 16 -c 1 0.r= aw > -r 12k 0.wav > redirecting stdin/out/err and it still doesn't create '0.wav': sox -r > 32k -t raw -e s -b 16 -c 1 0.raw -r 12k 0.wav &> out.log < /dev/null & > > the sox output seems the same in all cases and echo $? print 0 =3D=3D suc= cess. > What am I missing? The daemon is probably running in a different directory than you're expecting. Use full path names in the sox command and see if that helps. -- = M=E5ns Rullg=E5rd _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users