Notices


Reply
Thread Tools
Posts: 20 | Thanked: 0 times | Joined on Jun 2009
#1
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?
 
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007
#2
You could probably use a crontab for that without needing any special/external programs.
 

The Following 2 Users Say Thank You to zerojay For This Useful Post:
Posts: 1,213 | Thanked: 356 times | Joined on Jan 2008 @ California and Virginia
#3
you could probably whip something up in Flash or Python really easily. Or BASH. Just sleep for sixty seconds, then beep, and loop that x times.
__________________
----------------------------------------------------

www.ezschool.com - The best online educational experience.
 
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:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#5
I'll be shot for this one day.

Code:
#include <unistd.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <hildon/hildon.h>

int main (int argc, char *argv[])
{
	int i;

        if (!g_thread_supported ())
                g_thread_init (NULL);

	gtk_init(&argc, &argv);

	for (i = 1; i<=30; i++)
	{
		hildon_play_system_sound("/usr/share/sounds/camera-video-record.wav");
		sleep(60);
	}
	return 0;
}
Attached Files
File Type: gz beep.gz (1.9 KB, 79 views)
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 20 | Thanked: 0 times | Joined on Jun 2009
#6
Whoa! I appreciate all the help, guys. I will give it a try this afternoon.
and btw, I have tried eggtimer, but it does not have the option to beep every minute.

Thanks!
 
Den in USA's Avatar
Posts: 1,390 | Thanked: 642 times | Joined on Nov 2007 @ California USA
#7
Originally Posted by RevenanT View Post
Whoa! I appreciate all the help, guys. I will give it a try this afternoon.
and btw, I have tried eggtimer, but it does not have the option to beep every minute.

Thanks!
Yes, Eggtimer can do 1 minute time-outs. Just slide the “minutes” center bar all the way down.
__________________
N800 / Diablo / 16gb int / 16gb ext / Globalsat BT-359 gps ..... Dell Streak 5 - Android 2.2.2
 
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#8
Originally Posted by RevenanT View Post
Whoa! I appreciate all the help, guys. I will give it a try this afternoon.
and btw, I have tried eggtimer, but it does not have the option to beep every minute.

Thanks!
I hit the thanks button for these guys because I have been assisted by them in the past and will pro'ly need assistance on something else in future. It's a good thing having members like them on board.
 

The Following 2 Users Say Thank You to YoDude For This Useful Post:
Posts: 20 | Thanked: 0 times | Joined on Jun 2009
#9
Originally Posted by YoDude View Post
I hit the thanks button for these guys because I have been assisted by them in the past and will pro'ly need assistance on something else in future. It's a good thing having members like them on board.
Good tip! Done
 
Den in USA's Avatar
Posts: 1,390 | Thanked: 642 times | Joined on Nov 2007 @ California USA
#10
Does 1 minute, see post #7.
__________________
N800 / Diablo / 16gb int / 16gb ext / Globalsat BT-359 gps ..... Dell Streak 5 - Android 2.2.2
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:45.