1
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?

fixit7
  • 3,127

2 Answers2

3

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
Amith KK
  • 13,412
0

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
Pablo Bianchi
  • 15,657
fixit7
  • 3,127