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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BEEP!

Status
Not open for further replies.

LunaPan

Programmer
Jan 13, 2004
25
US
Hi all, I'm trying to write an alias that will beep at the user when a program has finished running. How do I do this?
 
Something like this ?
echo "\007\c"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
That's not working... It needs to be in tcsh if that helps.
 
And this ?
/bin/echo "\007\c"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks, that did it.

What's the difference between the implementations of /usr/bin/echo (whereis echo) and /bin/echo ? Is /bin/echo just what ksh uses?
 
On some OS (Linux) you will need to use either of these:
Code:
echo -e "\007\c"
# -- or --
tput bel
[pipe]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
I think /bin/echo is the posix implementation.
Another way should works too:
/bin/echo "\a\c"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
LunaPan said:
What's the difference between the implementations of /usr/bin/echo (whereis echo) and /bin/echo ? Is /bin/echo just what ksh uses?

I think [tt]ksh[/tt] probably has a built-in [tt]echo[/tt], as do most shells. You can read the shell man page to see what "features" it has.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top