[LAU] Toggle Jack Transport CLI

Ralf Mardorf ralf.mardorf at alice-dsl.net
Tue Nov 15 22:11:40 UTC 2016


On Tue, 15 Nov 2016 21:48:30 +0000, Yassin Philip wrote:
>On 15/11/16 21:40, Ralf Mardorf wrote:  
>> &> /dev/null is the same as  >/dev/null 2>&1 , it redirects STDERR
>> and STDOUT to /dev/null, IOW all output is invisible.  
>Ah, sorry, it works now, it's just that I was executing it in a ZSH
>env. It needs to be a bash script. Thanks everyone, I got my transport
>toggle now! It's disturbingly hacky, but it works :)

Nothing of his script requires bashisms, use zsh compatible
redirecting  >/dev/null 2>&1  or don't redirect at all. For scripts like
this I anyway would use dash, because it's lightweight and faster than
bash.

Regards,
Ralf


More information about the Linux-audio-user mailing list