Create Desktop Notifications and Reminders From Linux Terminal

Introduction

Sometimes it’s useful to get visual feedback from a script. For example when the script or cron job completes. Or when the long-running build fails. Or when there is an urgent problem during script execution. Desktop applications can do this with popup notifications. But it can be done from the script too! You can use script commands to send yourself desktop notifications and reminders. Check this out:

The below code has been written and tested on Linux. What about MacOS? Well… it can be done too, with a bit of effort. See the last chapter for some hints and tips.