Re: Beep question...
Chris P <[EMAIL PROTECTED]> writes: > If anyone knows, I'd appreciate the info! Thanks! Someone already answered your question as it applies to the PC's case speaker so I'll show you how I do beeping with the external speaker(s). The audio/aumix port must be installed and you'll have to locate some other sound files (eg with "locate \.au"). #!/bin/ksh ## Usage: beep [-cowbell] [_count_] if [ "$1" = -cowbell ]; then shift SOUND=/xxx/share/sounds/old-emacs/cowbell.au else SOUND=/xxx/share/sounds/old-emacs/wallsoff.au fi if [ "$1" = "" ];then beeps=1 else beeps=$1 fi NEWVOL=100 while [ 1 = 1 ]; do OLDVOL=$(aumix -vq|cut -d ' ' -f 3) aumix -v "$NEWVOL" cat "$SOUND" >/dev/audio aumix -v "$OLDVOL" beeps=$((beeps-1)) if [ $beeps = 0 ]; then break fi #sleep 1 ## for slower beeping done To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Beep question...
Perhaps try man beep echo 'main() { initscr();beep(); }' > a.c && gcc -lncurses a.c && ./a.out; reset or man -k speaker and subsequently man speaker man spkrtest Dw. On Tue, 12 Nov 2002, Chris P wrote: > > I have a simple question. I want to make my PC speaker beep. I for the > life of my cannot find a simple command to do this... I dont want an > X-app, I dont want change the tone, or anything special.. Just a beep! > > If anyone knows, I'd appreciate the info! Thanks! > > C. > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Beep question...
On Tue, 2002-11-12 at 12:04, Chris P wrote: > > I have a simple question. I want to make my PC speaker beep. I for the > life of my cannot find a simple command to do this... I dont want an > X-app, I dont want change the tone, or anything special.. Just a beep! Try: printf '\a' Regards, Sergey To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Beep question...
I have a simple question. I want to make my PC speaker beep. I for the life of my cannot find a simple command to do this... I dont want an X-app, I dont want change the tone, or anything special.. Just a beep! If anyone knows, I'd appreciate the info! Thanks! C. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message