Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


time scheduling playlists
#2
I don't know with crontab, i would recommand systemd timer instead:

Code:
sudo systemd-run --unit=Playlist_Soul --on-calendar='2021-02-03 19:00' --timer-property=AccuracySec=500ms sh -c 'mpc clear; mpc load Soul; mpc play'

Will create a timer and a service for loading your playlist Soul at 19H today. You also can replace the mpc commands by a script if u want do more stuff.

To watch ur timers:
Code:
systemctl list-timers

To disable the timer:
Code:
sudo systemctl stop Playlist_Soul.timer

To reset the timers who failed:
Code:
sudo systemctl reset-failed
Reply


Messages In This Thread
time scheduling playlists - by kennedy - 02-03-2021, 10:09 AM
RE: time scheduling playlists - by TookaFace - 02-03-2021, 02:41 PM
RE: time scheduling playlists - by KmPan - 02-04-2021, 10:55 AM
RE: time scheduling playlists - by kennedy - 02-04-2021, 07:40 AM

Forum Jump: