Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 using "Screen" on Ubuntu.

How can I use 'screen' to compile my project and give me a notification when compile is done whether the build is successful or not?

share|improve this question
up vote 0 down vote accepted

If the screen is running on the same machine as your desktop, you can do

 make 2> make.errors ; notify-osd "Compilation done" "`tail -3 make.errors`"

or

(make && notify-send "Compilation finished" "Success") || notify-send "Compilation finished" "Failure"

If it is running on another system to which you connect over ssh, however, you will have to install a mailer that sends you an e-mail.

share|improve this answer

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.