How can I redirect sox messages to null or a log file

Это включено в Shotwell .8, который вы можете получить здесь.

0
задан 21 July 2020 в 18:26

1 ответ

sox has -q option if you don't want to see the messages.

You also forgot to specify what you want to send to /dev/null. It must be 1 (STDOUT), 2 (STDError) or & or 1&2 meaning both. check What does 2>/dev/null mean?

If you want to run the command in background add & at the end of command.

So it must be one of the followings:

sox -q -t pulseaudio alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -t mp3 test.mp3 silence 1 0.1 3% 1 3.0 3%  &

OR:

sox -t pulseaudio alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -t mp3 test.mp3 silence 1 0.1 3% 1 3.0 3% &>/dev/null &
0
ответ дан 30 July 2020 в 22:04

Другие вопросы по тегам:

Похожие вопросы: