Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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.