![]() A slightly more reliable method is to open /dev/tty and send your BEL character there. There are other ways to cause a beeping noise. This only works if the calling shell's standard output is currently directed to a terminal device of some sort if not, the beep will produce no sound and might even cause unwanted corruption in whatever file the output is directed to. The traditional method of producing a beep in a shell script is to write an ASCII BEL ( \007) character to standard output, by means of a shell command such as echo -ne '\007' There are 3 ways of creating a sound from the beep manpage: This command will try different approaches to create a system sound. ![]() I usually use the little utility beep installed on many systems. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |