Oct 13, 2003 #1 learningawk Technical User Joined Oct 15, 2002 Messages 36 Location US I want to insert a bell tone into my awk script and ring after the awk script finishes. Thanks for your assistance.
I want to insert a bell tone into my awk script and ring after the awk script finishes. Thanks for your assistance.
Oct 13, 2003 1 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Try this: Code: END {printf "\07"} Hope This Help PH. Upvote 0 Downvote
Oct 13, 2003 #3 Ygor Programmer Joined Feb 21, 2003 Messages 623 Location GB Print the ascii code for "Bell", octal number 007 .... END {print "\007"} Upvote 0 Downvote
Oct 13, 2003 Thread starter #4 learningawk Technical User Joined Oct 15, 2002 Messages 36 Location US 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. Upvote 0 Downvote
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.
Oct 13, 2003 #5 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Try this: Code: END {printf "\07">"/dev/tty"} Hope This Help PH. Upvote 0 Downvote
Oct 13, 2003 Thread starter #6 learningawk Technical User Joined Oct 15, 2002 Messages 36 Location US Thanks PHV. It worked like I wanted it to. Upvote 0 Downvote