cvlc --play-and-exit /usr/share/sounds/My_Sounds/Alarm-sound-buzzer.mp3 2> /dev/nullWhen 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?
42 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