Playing a beep sound on mac using terminal

Hi,
I need to do something like beep 25 and there should be a beep on my Mac laptop a notification or screen flickr will be better... How could i achieve this using some command or script on terminal..
Thanks
Rohit BajajAsked:
Who is Participating?
 
David FavorConnect With a Mentor Linux/LXD/WordPress/Hosting SavantCommented:
Unsure what a beep 25 might mean.

This will do a normal bell ring on most platforms, including Linux + OSX/Macs...

echo -ne '\007'

Open in new window


To use this in a script, just write a script using echo.

On Macs, you can also use the built in Notifications system.
0
 
hdhondtConnect With a Mentor Commented:
Here's the man page for beep:   https://linux.die.net/man/1/beep

For a 1 second beep at 1kHz, issue the command

beep -f 1000 -l 1000

If beep is not installed, you can download it from   http://www.johnath.com/beep/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.