On Jan 24, 2000 at 08:45, Pablo Ares Gastesi wrote:
> > > | Anyone know any alarm clock programs for linux? I need something for the
I have found this to be better:
/* beeper. makes a red alert type noise, until ctrl-c is pressed. Must run
on a console. No crontabs.
By satya [EMAIL PROTECTED] 2000.01.20*/
#include <fcntl.h>
#include <linux/kd.h>
int console;
int main() {
int j,k;
/*for (k=0;k<=5;k++) { */
while(1==1) {
for(j=2000;j>=1000;j-=25) {
ioctl (console, KIOCSOUND, j);
usleep(80); /* milliseconds */
ioctl (console, KIOCSOUND, 0);
}
for(j=1000;j>=600;j-=50) {
ioctl (console, KIOCSOUND, j);
usleep(80); /* milliseconds */
ioctl (console, KIOCSOUND, 0);
}
sleep(1);
}
return 0;
}
--
Satya. http://satyaonline.cjb.net/
Mumbai bus guide at http://satyaonline.cjb.net/ !
FREE! Email reminder service at http://satyaonline.cjb.net/rem.html
<<< Hi! I'm a tagline virus! Steal me & join in the fun! >>>
To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list
button and fill the appropriate information
and submit. For any other queries contact the ML maintener