Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

5 Answers

up vote 4 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
add comment

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
add comment

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. –  j t 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
add comment

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: mikelward.com/news/2009/05/… But it doesn't look like it's my gnome-terminal (2.28) yet. –  j t Oct 12 '09 at 13:19
    
notify-send is the shell interface - wagiaalla.com/blog/?p=28 linuxjournal.com/content/… –  TRS-80 Oct 12 '09 at 13:39
add comment

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
add comment

Your Answer

 
discard

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.