Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I ring the terminal bell? 1

Status
Not open for further replies.

learningawk

Technical User
Oct 15, 2002
36
US
I want to insert a bell tone into my awk script and ring after the awk script finishes.

Thanks for your assistance.
 
Try this:
Code:
END {printf "\07"}

Hope This Help
PH.
 
Print the ascii code for "Bell", octal number 007 ....

END {print "\007"}
 
Thanks for the help.
Both of these suggestions work except when re-directing the output to a file. Then, there is no sound.

Comments?

Thanks again.
 
Try this:
Code:
END {printf "\07">"/dev/tty"}


Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top