Stop output messages from cvlc

cvlc --play-and-exit /usr/share/sounds/My_Sounds/Alarm-sound-buzzer.mp3 2> /dev/null

When I use this, I get these irritating messages like

Simple mixer control 'Master',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 65536 Mono: Front Left: Playback 19661 [30%] [on] Front Right: Playback 19661 [30%] [on]

Any to suppress them?

4

2 Answers

Instead of just redirecting stderr with 2>, replace it with 2>&1 to redirect both stdin and stderr to /dev/null

cvlc -q --play-and-exit /usr/share/sounds/My_Sounds/Alarm-sound-buzzer.mp3 > /dev/null 2>&1
4

This can be made to work by redirecting all output (error and normal output) to /dev/null

cvlc --play-and-exit /usr/share/sounds/freedesktop/stereo/bell.oga > /dev/null 2>&1
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like