Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For example:

I want to set when 6:00 am it plays 1.mp3 (if 2.mp3 is playing then close 2.mp3).

When 18:00 it plays 2.mp3 to replace 1.mp3 (replace means close 1.mp3 and play 2.mp3).

Everyday was the above sequence.

How to do it?

share|improve this question
1  
Check out man crontab –  TLP Oct 7 '11 at 16:33
    
Possible duplicate –  Marco Ceppi Oct 7 '11 at 18:00
    
I try to edit crontab's conf: 51 22 * * * /home/sam/mp3.sh and I restart cron service by 'sudo service cron restart'.Why it also couldn't run? –  sam Oct 10 '11 at 14:52

1 Answer 1

up vote 1 down vote accepted

Alarm Clock (alarm-clock-applet) in the Ubuntu Software Center provides an easy way to execute certain commands at certain times on a repeating schedule.

I imagine your commands executed at each alarm would look something like this: banshee --hide --stop; banshee --hide --play <Your .mp3 filename and path here>

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.