Send GUI notification from CLI on Ubuntu

If you have a script running, or a cron task and you want to know when it's done and was it successful, simply send a notification from a script to your desktop with the following command:

$ notify-send "Message title" "Message body"
Enter your comment:
200 +8 =
  • linux/ubuntu/notify.txt
  • Last modified: 2019-10-31 09:05
  • (external edit)