[Ilugc] Beep Sound

  • From: prakash@xxxxxxxxx (Prakash Chandrasekaran)
  • Date: Fri, 27 Dec 2002 18:39:48 +0530

Hi,

        I have added a bit more details (comments) to srs' script.

#---------------------- Script Begins -------------------#
#!/bin/sh
if [ "$1" = "off" ]; then
        echo -e "\33[11;0]"
        echo "Bell turned off."
fi

if [ "$1" = "on" ]; then
        echo -e "\33[10;750]\33[11;250]"
        echo "Bell turned on."

# The escape sequence \33[10;f] sets the frequency to f.

# And \33[11;d] sets the duration for which the speaker 
# generates the frequency f upon every beep to d.


fi

if [ "$1" = "" ]; then
        echo "Usage: $0 <on|off>"
fi
#---------------------- END of Script -------------------#

-- 
-pc.
(Prakash Chandrasekaran)

prakash_c@xxxxxxxxxxxxxxxxxxxxx

http://www.cmi.ac.in/~prakash
http://cloud.prohosting.com/~bkool

public key : http://www.cmi.ac.in/~prakash/public_key.txt
             [public key was modified on 24th April 2002]

Other related posts: