You are not logged in.

#1 2009-02-23 07:58:53

Zetsumei
Member
From: NC
Registered: 2007-09-13
Posts: 156

Could anyone point me in the direction of a shell script guide for...

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

#2 2009-02-23 08:31:15

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Could anyone point me in the direction of a shell script guide for...

sleep 30m;mpc toggle

wink

Offline

#3 2009-02-23 08:47:47

Zetsumei
Member
From: NC
Registered: 2007-09-13
Posts: 156

Re: Could anyone point me in the direction of a shell script guide for...

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

Board footer

Powered by FluxBB