Make your alarm in Ubuntu
aboSamoor | May 16, 2008 | 12:14 pmAs most of the linux users machines are working more than 24 hours a day
. It will be a good idea make your PC an alarm instead of buying another device
, i searched for a solution and i preferred the one packaged already with Ubuntu; Using sleep program will solve the problem, try to look at this :
sleep 5m && totem bla.mp3
this statement contains two commands written on one line using && operator, The first “sleep 5m” will halt the execution of the later command for 5 minutes, after the interval finished totem will execute playing the song you want. to make that for 8 hours, you just type:
sleep 8h && mplayer foo.mp3
for more information try :
man sleep
you can change the mplayer, totem with any program you want
.
–Good Luck





