Server Fault is a question and answer site for system and network administrators. 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'm currently trying to configure sphinxsearch. The indexing takes around 7 minutes. Too long to wait so I usually start doing some other tasks before testing the results. But I would like to be notified when the indexing is finished - what are your ideas? The problem is also that the sessions are running through ssh. Ideal would be some tray notification that would watch changes on the terminal that is either minimized or shown on a different virtual desktop.

share|improve this question

closed as off-topic by masegaloeh, kasperd, Jenny D, Katherine Villyard, Hyppy Apr 24 '15 at 17:51

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – kasperd, Jenny D, Katherine Villyard, Hyppy
If this question can be reworded to fit the rules in the help center, please edit the question.

I would say a good way to achieve it would be to use a terminal which can be configured to look for output matching some regex and send a notification once a match is found. Better yet if the UI has a button somewhere on the border to toggle the feature between on, off, and automatic (meaning on as long as the window is out of focus). – kasperd Apr 19 '15 at 6:57
up vote 5 down vote accepted

A couple possibilities off the top of my head:

  • play a music or alarmish sound file
  • open a particular 'I'm done!' webpage with your browser (most browsers will just open a new tab or window if you they're already open)
  • notify-send or gmessage or xmessage, which all do approximately the same thing: pop up an x-windows window with the message you specify.
share|improve this answer

I know the screen terminal program can produce a bell when output stops in a virtual screen... but I'm not sure if that will achieve exactly what you're looking for.

share|improve this answer
I don't want to annoy my coworkers with beeps and when I turn to visual-bell (which is possible in most of the x terminals) I want see it because my terminal is mnimized. – Jakub Troszok Oct 12 '09 at 13:10
Ah, gotcha. Then screen probably isn't a good answer. I'll see if I can think of another. – Josh Oct 12 '09 at 13:21

The current method in Linux is link text. You can interface to it from a shell script using dbus.

share|improve this answer
Thanks I found this:… But it doesn't look like it's my gnome-terminal (2.28) yet. – Jakub Troszok Oct 12 '09 at 13:19
notify-send is the shell interface -… – TRS-80 Oct 12 '09 at 13:39

KDE's konsole has the option to notify you (bell/icon change) when a terminal session produces new output. Run the indexing in konsole, and append something like "&& echo done" to get output at the end (if there is none normally). Redirect regular output from the indexing.

share|improve this answer

To elaborate on @pjz's answer, you could use xmessage (or any other command that will make something happen visually) like this:

long-running-command; xmessage "I'm Done"

This will pop up a small notification window when your command is done.

share|improve this answer

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