Display a pop message at the end of a cron job.


Traditionally, when a cron job is finished. You will get a nice email indicating of its status.

Lately, I am quite annoyed by the amount spams that I am getting.

On my Linux laptop, I had it configured with a few cron jobs running in the background monitoring other activities.

Lately, it just flooding my in-box with messages and becoming unmanageable and hard to keep up.

Since, I am only interested to know if something interesting had occurred. There must be a better way than flooding my in-box with emails.

After, some research I found that the notify-send is included with every Linux-Mint installation. It’s quite simple to use and quite customizable and fit the bill perfectly.

Below is a sample on how to use it:

          notify-send –icon=/usr/share/icons/Mint-X/apps/48/gnome-gnibbles.png –expire-time 30000 ‘Oppa’ ‘You do have a life after work! So, go home!’

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s