sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
* sox won't write output file when run in spawned shell
@ 2018-11-05  1:25 Rob Robinett
  2018-11-05 15:54 ` Måns Rullgård
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Robinett @ 2018-11-05  1:25 UTC (permalink / raw)
  To: sox-users

[-- Attachment #1.1: Type: text/plain, Size: 749 bytes --]

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.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 == success.
What am I missing?

thanks

Rob

-- 
Rob Robinett
AI6VN
rob@robinett.us
mobile: +1 650 218 8896

[-- Attachment #1.2: Type: text/html, Size: 2568 bytes --]

<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">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&#39;t create the output file:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">runs and creates &#39;0.wav&#39;:              sox -r 32k -t raw -e s -b 16 -c 1 0.raw -r 12k 0.wav </font><br></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">runs but doesn&#39;t create &#39;0.wav&#39;:    <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">sox -r 32k -t raw -e s -b 16 -c 1 0.raw -r 12k 0.wav</span></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">redirecting stdin/out/err and it still doesn&#39;t create &#39;0.wav&#39;:      s</span>ox -r 32k -t raw -e s -b 16 -c 1 0.raw -r 12k 0.wav &amp;&gt; out.log &lt; /dev/null &amp;</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">the sox output seems the same in all cases and echo $? print 0 == success.  What am I missing?</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">thanks</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Rob</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Rob Robinett</div><div>AI6VN</div><div><a href="mailto:rob@robinett.us" target="_blank">rob@robinett.us</a></div><div>mobile: +1 650 218 8896</div></div></div></div></div></div></div>
</div></div></div>

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sox won't write output file when run in spawned shell
  2018-11-05  1:25 sox won't write output file when run in spawned shell Rob Robinett
@ 2018-11-05 15:54 ` Måns Rullgård
  2018-11-06  0:27   ` Rob Robinett
  0 siblings, 1 reply; 3+ messages in thread
From: Måns Rullgård @ 2018-11-05 15:54 UTC (permalink / raw)
  To: Rob Robinett; +Cc: sox-users

Rob Robinett <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.  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.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 == 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åns Rullgård


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sox won't write output file when run in spawned shell
  2018-11-05 15:54 ` Måns Rullgård
@ 2018-11-06  0:27   ` Rob Robinett
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Robinett @ 2018-11-06  0:27 UTC (permalink / raw)
  To: Måns Rullgård; +Cc: sox-users

[-- Attachment #1.1: Type: text/plain, Size: 1228 bytes --]

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åns Rullgård <mans@mansr.com> wrote:

> Rob Robinett <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.  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.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 ==
> 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åns Rullgård
>



-- 
Rob Robinett
AI6VN
rob@robinett.us
mobile: +1 650 218 8896

[-- Attachment #1.2: Type: text/html, Size: 2469 bytes --]

<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">You were correct,  There was no problem with sox, it was with my daemon.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">thanks,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 5, 2018 at 7:54 AM, Måns Rullgård <span dir="ltr">&lt;<a href="mailto:mans@mansr.com" target="_blank">mans@mansr.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Rob Robinett &lt;<a href="mailto:rob@robinett.us">rob@robinett.us</a>&gt; writes:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am trying to us sox as part of an RF signal processing daemon on a<br>
&gt; Raspberry Pi 3B Stretch.  When I execute sox from a terminal command line<br>
&gt; the output file is created, but when I spawn the command it runs but<br>
&gt; doesn&#39;t create the output file:<br>
&gt;<br>
&gt; runs and creates &#39;0.wav&#39;:              sox -r 32k -t raw -e s -b 16 -c 1<br>
&gt; 0.raw -r 12k 0.wav<br>
&gt; runs but doesn&#39;t create &#39;0.wav&#39;:    sox -r 32k -t raw -e s -b 16 -c 1 0.raw<br>
&gt; -r 12k 0.wav<br>
&gt; redirecting stdin/out/err and it still doesn&#39;t create &#39;0.wav&#39;:      sox -r<br>
&gt; 32k -t raw -e s -b 16 -c 1 0.raw -r 12k 0.wav &amp;&gt; out.log &lt; /dev/null &amp;<br>
&gt;<br>
&gt; the sox output seems the same in all cases and echo $? print 0 == success.<br>
&gt; What am I missing?<br>
<br>
</span>The daemon is probably running in a different directory than you&#39;re<br>
expecting.  Use full path names in the sox command and see if that<br>
helps.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Måns Rullgård<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Rob Robinett</div><div>AI6VN</div><div><a href="mailto:rob@robinett.us" target="_blank">rob@robinett.us</a></div><div>mobile: +1 650 218 8896</div></div></div></div></div></div></div>
</div>

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-05  1:25 sox won't write output file when run in spawned shell Rob Robinett
2018-11-05 15:54 ` Måns Rullgård
2018-11-06  0:27   ` Rob Robinett

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.org/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox