|Tech Tip: add a notification (or any other command) after a command-line task has ended
||[Mar. 30th, 2014|06:33 pm]
|[||Tags|||||linux, tech, tech tip, tip||]|
|||||The White Panda - Bearly Legal||]|
I discovered that one can add a notification after a command you've already
started running has ended on a UNIX system by suspending the command
using “Ctrl + Z” and then typing something like
“fg ; n --msg 'Command finished'” (where “n” is the command I use for
notifications). “fg” brings a job to the foreground, and for more information
about it see
entry and the Unix Background Jobs entry on thegeekstuff.com.
You can reuse this entry under
the Creative Commons
Attribution 3.0 Unported licence, or at your option any later version.
of how to comply with it.