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/....
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/....
Use this:
yourlongrunningcommand ; notify-send "Yay! We're done! Off to the bar!"
To understand the command:
; denoted sequential execution. First execute yourlongrunningcommand and when done, execute the next command... which isnotify-send, which is nothing more than the type of notification
you wanted as per our comment exchangeI just googled to know that second part. I found this on askubuntu.com.
sleep 30 ; xmessage -center "Sleep 30 Done"Where you substitutesleep 30with your command and enter the text you like between the double quotes? Basically, it's two commands executed in sequence. That's what the;stands for: it separates two commands. – jawtheshark Aug 22 '16 at 15:23alertin Ubuntu's .bashrc. – DK Bose Aug 22 '16 at 15:41alertbut make this the default feature. – orschiro Aug 22 '16 at 15:42alias a='notify-send "Completed"executionyoutube-dl ;a– Aug 22 '16 at 15:47abefore a command? – orschiro Aug 22 '16 at 15:50