I was trying to get my system to give a audio alert (BTW: it is a Morse code letter) just before the hour using the following line
59 * * * * cvlc --play-and-exit /home/name/Music/B_morse_code.mp3
At first the crontab line was different and as I kept changing the minutes number, so it should work within a couple of minutes, but found it never worked
So then I put the line into a command terminal and it never worked either, so eventually got line changed to the following cvlc --play-and-exit /home/name/Music/B_morse_code.mp3 works from the command terminal.
I try a few options but nothing works from the crontab file likesudo cvlc --play-and-exit /home/name/Music/B_morse_code.mp3
This is what I get when I run it in the command terminal
name@raspberrypi:~ $ cvlc --play-and-exit /home/name/Music/B_morse_code.mp3
VLC media player 3.0.23 Vetinari (revision 3.0.23-2-0-g79128878dd)
[00005555a61d6040] dummy interface: using the dummy interface module...
[00005555a6187ab0] main playlist: end of playlist, exiting
59 * * * * cvlc --play-and-exit /home/name/Music/B_morse_code.mp3
At first the crontab line was different and as I kept changing the minutes number, so it should work within a couple of minutes, but found it never worked
So then I put the line into a command terminal and it never worked either, so eventually got line changed to the following cvlc --play-and-exit /home/name/Music/B_morse_code.mp3 works from the command terminal.
I try a few options but nothing works from the crontab file like
This is what I get when I run it in the command terminal
name@raspberrypi:~ $ cvlc --play-and-exit /home/name/Music/B_morse_code.mp3
VLC media player 3.0.23 Vetinari (revision 3.0.23-2-0-g79128878dd)
[00005555a61d6040] dummy interface: using the dummy interface module...
[00005555a6187ab0] main playlist: end of playlist, exiting

