I want to write a shell script that beeps on a certain event. I don' want the output from the soundcard but from the system speaker, like when I do something wrong. But it would be nice if I could make the sound shorter or longer than that, or two short sounds. What's the command for that? Btw, my system speaker seems too loud. Is there a way to control the volume in software (I haven't found it in the BIOS setup)?