1

I would like to always receive a visual notification when a process has finished in a terminal window. Example of such a process:

youtube-dl -cit --extract-audio --audio-format mp3 https://www.youtube.com/....
orschiro
  • 13,687

1 Answers1

2

Use this:

yourlongrunningcommand ; notify-send "Yay! We're done!  Off to the bar!"

To understand the command:

  • The ; denoted sequential execution. First execute yourlongrunningcommand and when done, execute the next command... which is
  • notify-send, which is nothing more than the type of notification you wanted as per our comment exchange

I just googled to know that second part. I found this on askubuntu.com.

jawtheshark
  • 2,617