Displaying Native Gui Notifications from Bash

Linux

#!/bin/bash
sleep 10
notify-send "notify.sh" "Task #1 was completed successfully"

OSX

#!/bin/bash
sleep 10
osascript -e "display notification \"Task #1 was completed successfully\" with title \"notify.sh\""

Backlinks