Open hieuhtr opened 7 years ago
Create a file MacNotification.sh in /Users/admin/Documents/ or somewhere
MacNotification.sh
/Users/admin/Documents/
#!/bin/bash /usr/bin/osascript -e 'display notification "Ngồi thẳng lưng + uống nước" with title "Suggestion"'
Make this script executable
❯❯ sudo chmod +x /Users/admin/Documents/MacNotification.sh
Test this script
❯❯ /Users/admin/Documents/MacNotification.sh
Push this notification frequency by using crontab
❯❯ crontab -e # Paste this line to crontab's configuration 10 * * * * /Users/admin/Documents/MacNotification.sh
It means, we have this notification at minute 10 of every hour, every day
Brilliant. That's why I love Mac :)) Thanks.
Issue
Solution
Create a file
MacNotification.sh
in/Users/admin/Documents/
or somewhereMake this script executable
Test this script
Push this notification frequency by using crontab
It means, we have this notification at minute 10 of every hour, every day
Reference: