You are not logged in.
Could anyone point me in the direction of a shell script guide that could help me write a auto-pause ncmpcpp shell script? I want to have a script that when runs auto pauses ncmpcpp after a set amount of time, so I run it and go hit the bed and after say 30mins it pauses. Is that even possible if my ncmpcpp is inside a screen session and never exits? Would a crontab be better for this or what?
Offline
sleep 30m;mpc toggle
Offline
I found a way to do it via cronjobs. Mind telling me if this is correct?
10 4 * * * /usr/bin/ncmpcpp pause
To pause ncmpcpp 10mins after 4am everyday?
Offline