Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've a nice question for you all. I'm performing some numerical analysis though SSH connection with my Linux machine. Since each numerical analysis lasts for 3-4 minutes during them I'm doing some other stuff for my work and most of the times I keep forgetting to check my terminal and run a new analysis. Do you know how to play a sound or something else that helps me remebering to check my terminal and do a new run? I'm working on OS X and my remote machine is a Ubuntu Linux running MATLAB.

edit: To clarify the situation: I have a OS X machine which I use to connect remotely to a Ubuntu linux desktop via SSH. I'm using matlab runtime on the SSH remote machine. I just want to receive a chime at the end of every matlab simulation on my local machine, not the remote one. That's all.

share|improve this question

migrated from Jan 21 '13 at 16:37

This question came from our site for professional and enthusiast programmers.

What exactly do you want to do? Play a reminder sound after something is done on the remote machine? – EitanT Jan 21 '13 at 12:25
So you want to play on the machine running matlab? Then you could try this snippet in matlab: load handel; sound(y,Fs) The other way I actually send myself a tweet or email as reminder - which will then also produce a sound ;) – bdecaf Jan 21 '13 at 12:57
@EitanT just need a ping or bell (OS X default is 'dong') sound to remind me that the command is finished, but in the matlab shell.. – Nicholas Jan 21 '13 at 14:32
@bdecaf I'm sending myself an email for long run analyses, such as 10-30hs but in this way I'll receive 1000 mails in a day! :) – Nicholas Jan 21 '13 at 14:33
@Nicholas So you're running MATLAB on a remote machine, and you want to play a sound a on the local machine when MATLAB finishes its work? – EitanT Jan 21 '13 at 14:35

On most Terminals and shells, this will produce an audible ping or bell:

echo -e '\a'

EDIT: you could also use this as a timer, like so:

(sleep 60; echo -e '\a') &

this will wait for 60 seconds and then produce aforementioned ping

share|improve this answer
So what OP should do is to replace the sleep 60 with the ssh command on the calling machine. When the command finishes, the beep will be played. Just to clear that up :-) – KlausCPH Jan 21 '13 at 14:06
That's a very interesting trick I didn't know that. It's very nice. However my problem is that I'm working on MATLAB environment while I use SSH. I mean, I use SSH remote connection and than use the matlab propmpt to lauch commands. I'll try it anyway to do that using > command, I'll let you know – Nicholas Jan 21 '13 at 14:22
Ah, heh, I thought you had an actual SSH shell open with a good ol' bash or something. Well, if it puts text on the console, you could try to produce the bell character in your matlab script when it's done... can't tell you how to do that in matlab though :). – Magnus Jan 21 '13 at 14:51

Use the matlab command to make a chime:

share|improve this answer
You might also have to enable sounds on your ssh link. – Chogg Mar 13 '14 at 8:57
Mar How can I enable that? Is it automatic (default)? – Nicholas Mar 26 '14 at 16:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.