1

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?

0

4 Answers 4

1

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

0

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

2
  • 1
    -1 for answering the title, not the question. May 3, 2010 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. May 4, 2010 at 6:05
0

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.

0

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.

You must log in to answer this question.

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