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.9 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,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 0D85E1F453 for ; Tue, 6 Nov 2018 00:28:12 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1gJpDn-0003Ci-U1; Tue, 06 Nov 2018 00:27:55 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gJpDn-0003Cb-4q for sox-users@lists.sourceforge.net; Tue, 06 Nov 2018 00:27:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:Cc:To:Subject:Message-ID:Date:From: References:In-Reply-To:MIME-Version:Sender:Reply-To:Content-Transfer-Encoding :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=7gyMFdOnqZ85k8K9PUh1fEQgQHuPDaBw/T+siiADxvM=; b=BMtzVht865hIh0Ah+NmiHK0g0s iPQhH4c/IsaxNR1sPAmYYFNo+cfsWYbx4feeH0cdoaExpToHoxivqNS/6d5TpWsnAaZrEMrmC4WDP KZYjNS9TA0sNiOGo71hEdy8IR7gvQeZeQmAw7KSXGH7UmdF+Y3KU4r1jAT9Id1bT6WgA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:Cc:To:Subject:Message-ID:Date:From:References:In-Reply-To: MIME-Version:Sender:Reply-To:Content-Transfer-Encoding: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=7gyMFdOnqZ85k8K9PUh1fEQgQHuPDaBw/T+siiADxvM=; b=VkFqycwfUFd6FeLBvabvWYuGDD y/ZOZa5EsFbwLYttDRdyZd6k3+QeOI9XKOYP68n2GF3NL8iBNWtNJ8b2+l/lPhDexuU02Jwiju2EO FnYleS1kf6Bkm18p/pFdzp7cJj2V9mY1mtcYg0CoL22PW9GEze0a5ZR2wLK8hXrF8ZCg=; Received: from mail-lf1-f45.google.com ([209.85.167.45]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) id 1gJpDj-00967m-H4 for sox-users@lists.sourceforge.net; Tue, 06 Nov 2018 00:27:55 +0000 Received: by mail-lf1-f45.google.com with SMTP id m18-v6so7529736lfl.11 for ; Mon, 05 Nov 2018 16:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=robinett-us.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7gyMFdOnqZ85k8K9PUh1fEQgQHuPDaBw/T+siiADxvM=; b=dAFLp73rQAWcreuBGr9K2o+e1OjhPBEDsawL0Y89/MbWrArQcg3M2qJOfhDOtbWu4k bXeYGkFnqOFUuavm0rcKqqSq4BKRk1zvjv4ttHXYmTQ3LL0I2CqbK5kDVYI+tttmhgvr VSyroqhHGJPqogUSz7q9+Olf2dY1vbAwJUPYV2AcA7y3InYNk6PPqih9/FPOeMSzaYM5 O+7Kt+fsmOd8aQbAbTvel6uwDdht/ELCovhYY/Xh8djG9gO3Zt4PdJtFXSro72zTgk6T UWW1bvGyGiBj4aEn5WhjUULhKbmuuJ04rhG2EtuIDnh5mcZDinJ0DuEuwW8c0ccYUPQU ouQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7gyMFdOnqZ85k8K9PUh1fEQgQHuPDaBw/T+siiADxvM=; b=MHBCx0fXsxwuZt3Aetzp6ETv4XfFO0VwjFNnEZ7HQNiOq6H8niAA8gRtPLKLfzGTtk IXnSMXJkbwzbCHG8ScQFfIPqMkFIyrU54HU/OtRvimPN3Mu/b8s4gtGZ6l+3cFxvrKwT zj7KRxd+8veLTcOm0wKB5ad/Le44WX9fSYZlZxlnT/R1C1HTFGeG2SthPLYqTzKyFW4P XKqt3EnRfF+FyQv+OXN0V0+LgAWI5ncgyBhBwmUu+Oud1lbDqQ9njOfzFlJd8WX/8Opz ZjfOyCwolW77yftQGmhGZgwkIQkvnXZsBUDSkPc1FWqHw9iIhvzypnV4fNNnFRTjuYGr /PNg== X-Gm-Message-State: AGRZ1gKd6HHMwpqyLtXdT1biZtZzV1DnjYF7mkNb8/Mt+cVb9A5i2KSV owiVmQznuiDynM7NFAqbmhpVqrbJbbQS6JJzv/Nt7huI X-Google-Smtp-Source: AJdET5fsVbnrF6KdCUz5We9mN98tdU0NfNbx8moym509p2JGjbXYyaE7ZkINbEnhOOw0crSUgwygyGZHggLDvVhoC9Q= X-Received: by 2002:a19:1cd3:: with SMTP id c202mr14381853lfc.33.1541464062751; Mon, 05 Nov 2018 16:27:42 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a19:fde:0:0:0:0:0 with HTTP; Mon, 5 Nov 2018 16:27:22 -0800 (PST) X-Originating-IP: [73.15.138.50] In-Reply-To: References: From: Rob Robinett Date: Mon, 5 Nov 2018 16:27:22 -0800 Message-ID: To: =?UTF-8?B?TcOlbnMgUnVsbGfDpXJk?= X-Headers-End: 1gJpDj-00967m-H4 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: multipart/mixed; boundary="===============0132487573619511723==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============0132487573619511723== Content-Type: multipart/alternative; boundary="000000000000e50a730579f411d2" --000000000000e50a730579f411d2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You were correct, There was no problem with sox, it was with my daemon. thanks, On Mon, Nov 5, 2018 at 7:54 AM, M=C3=A5ns Rullg=C3=A5rd wr= ote: > 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 li= ne > > 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.raw > > -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 > success. > > 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=C3=A5ns Rullg=C3=A5rd > --=20 Rob Robinett AI6VN rob@robinett.us mobile: +1 650 218 8896 --000000000000e50a730579f411d2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You were correct,=C2=A0 There was no problem with sox, = it was with my daemon.

thanks,


On = Mon, Nov 5, 2018 at 7:54 AM, M=C3=A5ns Rullg=C3=A5rd <= mans@mansr.com><= /span> wrote:
Rob Robine= tt <rob@robinett.us> writes:
> Hi,
>
> I am trying to us sox as part of an RF signal processing daemon on a > Raspberry Pi 3B Stretch.=C2=A0 When I execute sox from a terminal comm= and 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':=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 sox -r 32k -t raw -e s -b 16 -c 1
> 0.raw -r 12k 0.wav
> runs but doesn't create '0.wav':=C2=A0 =C2=A0 sox -r 32k -= t raw -e s -b 16 -c 1 0.raw
> -r 12k 0.wav
> redirecting stdin/out/err and it still doesn't create '0.wav&#= 39;:=C2=A0 =C2=A0 =C2=A0 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 = success.
> What am I missing?

The daemon is probably running in a different directory than you'= ;re
expecting.=C2=A0 Use full path names in the sox command and see if that
helps.

--
M=C3=A5ns Rullg=C3=A5rd



--
Rob Robinett
AI6VN
mobile: +1 650 218 8896
--000000000000e50a730579f411d2-- --===============0132487573619511723== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0132487573619511723== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============0132487573619511723==--