Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 am running a few tasks in my Linux console and want to be notified by some kind of alarm, so I don't keep checking the progress of the task.

Is there a way to customize the alarm by specifying additional filters like "ERROR" message, etc? I think it will be a useful thing to have.

Anyone aware of such functionality in Linux?

share|improve this question

migrated from May 4 '10 at 5:41

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

tee the output to a script that checks for errors and beeps.

share|improve this answer

you could try the at command and get that to run some alert at a given time. Alternatively you could use the Evolution calendar.

share|improve this answer
-1 for answering the title, not the question. – Tiberiu Ana May 3 '10 at 11:09
+1 for the 'at' solution. @Tiberiu: Maybe the -1 should be assigned for the question, when the title is so different from the body. – Ivan Petrushev May 4 '10 at 6:05

It sounds to me like you want something like Growl for Linux.

For what you're describing, you might have some luck with Specto.

Alternately, try GNotify or Mumbles.

share|improve this answer

You can append your command with an invocation of notify-send, passing it the exit status of the previous command. However, the notification does not stay on screen for long, so you might want to write the exit status to your terminal first. Here is an example:

grep -r sex # this is just a dummy command that I made up
error=$? ; echo "Previous command exited with status $error"
notify-send "job complete" "exit status $error"

Play around with it, and take a look at the man page to see if it suites your needs.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .