I’m trying using crontab to start, at a specific time and date, an audio file using sox.
I’m using an Odroid-C2 with manjaro-arm LXQT (the fact that I am on an ARM board is not relevant here), with ssh, so no monitor.
Crontab works great, It creates folders or text files headlessly or in ssh, and it also plays the audio file I want while in ssh. The problem is that sox doesn’t work when I am not connected via ssh to the Odroid. I’ve tried almost everything to make it work.
My crontab file:
HOME=/ MAILTO=root SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin XDG_RUNTIME_DIR=/run/user/1000 ##Song## 0 7 * * * /home/odroid/cron/Song.sh
Again, the command works flawlessly when executing it manually in the terminal, and it’s the same with crontab while in ssh. So the only thing I suspect is that having no monitors or ttys active, stops sox from working. Any ideas?