On 31/01/14 18:12, Paul E Condon wrote: > On 20140131_174326, Scott Ferguson wrote: >> On 31/01/14 16:40, Paul E Condon wrote: >>> I want my Wheezy desktop (windowing with xfce) to issue a beep after a >>> adjustable amount of time. I expected that I could do this with a tiny >>> bash script using sleep and echo, but I cannot get echo to make the >>> computer issue a beep as it should according to the man page. What >>> special knowledge is needed? Why don't I get a beep with: >>> >>> echo -e \a >>> >>> TIA >>> >> >> Do you have a PC speaker? > > What is a PC speaker? I have a woofer and two tweeters that produce > sound for video clips from YouTube, but PC speaker must be something > else?
Yes. It's the thing that goes beep :D If you have one it'll be a piezo or magnetic device mounted on the motherboard or inside the front panel. It's possible to re-route to your external speakers but I'd have to look up the method using the search engine (which I doubt I could do better than you. When you've found the solution you 'may' find this useful, quickly copied from our internal-use wiki:- beep # apt-get install beep beep allows the user to control the pc-speaker with precision, allowing different sounds to indicate different events. While it can be run quite happily on the command line, it's intended place of residence is within shell/perl scripts, notifying the user when something interesting occurs. Of course, it has no notion of what's interesting, but it's real good at that notifying part. All options have default values, meaning that just typing 'beep' will work. If an option is specified more than once on the command line, subsequent options override their predecessors. So 'beep -f 200 -f 300' will beep at 300Hz. Examples Simple tune #!/bin/bash # NAME: beep.sh # LOCATION: ~/Scripts beep -f 65.4064 -l 100 -n -f 130.813 -l 100 -n -f 261.626 -l 100 -n -f 523.251 -l 100 -n -f 1046.50 -l 100 -n -f 2093.00 -l 100 -n -f 4186.01 -l 100 Using beep to indicate a computer has booted #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. /home/scott/beep.sh exit 0 Using beep to indicate a VirtualBox guest has booted NOTE: This requires the previous use of ssh-copy-id #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. ssh scott@work /home/scott/beep.sh exit 0 > >> >> Kind regards >> >> <snipped> Kind regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52eb501f.1000...@gmail.com