Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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/ and I restart cron service by 'sudo service cron restart'.Why it also couldn't run? – sam Oct 10 '11 at 14:52
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


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.