* 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 --]
[-- 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 --]
[-- 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, other threads:[~2018-11-06 0:28 UTC | newest]
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
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/sox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).