[TriLUG] Dumb Question: Terminal Beep Command

Mike Norwood norwoodm at earthlink.net
Tue Feb 15 17:51:59 EST 2005


On Tue, 15 Feb 2005, Alan Porter wrote:

> 
> > % some_long_running_process ; beep ;
> 
> Use 'vi' to create a two-liner shell script, like this:
> 
>     #!/bin/sh
>     echo "<ctrl-V><ctrl-G>"

I found an old shell called beep on a system here that had

setterm -blength 250 -bfreq 3000
echo -e "\a"  

which also works fine.  The setterm command can actually change the 
duration and frequency of the beep command. I did not see a parameter for 
volume.

Mike

> 
> 
> In vi, the ctrl-V will allow you to insert a literal character
> next.  In this case, you'll have an ASCII 07 character in between
> your quotes.
> 
> 
> Alan
> 
> 
> 
> 




More information about the TriLUG mailing list