Wednesday, July 28, 2010

Water In Lcd Wll It Dry

End of job notification for an operation of the terminal

operation carried out in the long terminal leaves you free to do anything else but binds him to occasionally having to check the end of the job started.
A possible solution would be convenient that the same terminal signal the "fine job".
aid and notify the library of an alias for bash also allow this.
install the library:
$ sudo apt-get install libnotify-bin
add the alias in your configuration file . Bashrc :
$ pico ~ /. Bashrc
the following line represents the alias that warn us of the work is finished and the outcome thereof
alias alert = 'notify-send-i gnome-terminal "[$?] $ (history
now you have to relaunch. Bashrc in order to have the new alias alert
$ available. ~ /. Bashrc
and test the notification system with a lot of work
$ sleep5; alert

0 comments:

Post a Comment