Thread: Maemo beeper
View Single Post
t_moyashi's Avatar
Posts: 49 | Thanked: 102 times | Joined on Jul 2009 @ 驚く為五郎
#4
Originally Posted by RevenanT View Post
Hello guys!

Iīm looking for an application that beeps after a given time, continuously. Letīs say that I need a beep every 1 minute, for 30 minutes. Is there anything like that?
I recommend eggtimer.
It is useful .

and I wrote a simple one-liner.
If mplayer is already installed, this script will work in Osso-Xterm.
Code:
for i in `seq 0 30` ;  do  echo $i min ; mplayer -really-quiet  /usr/share/sounds/camera-video-record.wav  ; sleep 60 ; done
Copy&paste it and press the Return key.
but strictly speaking , this script doesn't keep good time.
(lose 0.3~0.5 sec / loop)
Code:
> time  mplayer /usr/share/sounds/camera-video-record.wav  -really-quiet
real    0m 0.41s

Last edited by t_moyashi; 2009-08-02 at 07:01.
 

The Following 3 Users Say Thank You to t_moyashi For This Useful Post: