I need to play an audio file and after 3 minutes close it, then all over again. play it 3 minutes and close it.
Currently I'm using a cron job to open the file in VLC and close it, but it's not good enough as it goes out of sync every once in a while.
Is there any alternative to this task with using a cron job?
*/3 * * * * cvlc /home/pi/Downloads/buildm3u */3 * * * * sleep 178; pkill vlc