How To Add Custom Notification Message By Time

how to add custom notification message by time

How To Add Custom Notification Message By Time

 |   |  1
Programming Ubuntu-Linux

How to add custom notification message by time?

Here I will give you a tip to notify you correct time by the system for anything such as office meeting, call, etc. It will notify you on the correct time when you are working like when the clock strikes 4:00 pm.

For doing that just enter below code in terminal. As many of the people said, the best way to do this on a daily basis is to use cron, but if you are only wanting to do it for one day, or sporadically, you can use the at command.

Syntax

echo 'notify-send "[YOUR MESSAGE]"' | at [TIME]

You can use at in a variety of ways, including as a tea timer.

Example

  • echo 'notify-send "Team 6, meeting at 10:00 AM, Location: learning center"' | at 9:57AM

  • echo 'notify-send "Get your tea!"' | at now + 3 minutes

  • echo 'notify-send "Meeting in 1 hour with the big boss!"' | at 1pm tomorrow

How to do in cron?

If you want to do this on a daily basis is to use cron.

  • Enter crontab -e in terminal.
  • Add 0 9 * * * echo 'notify-send "Team 6, meeting at 10:00 AM, Location: learning center"' | at 9:57AM
  • It will set on 9 AM dialy basis.

11 Claps

Show your love in the form of Claps and Comments...

Comments...

Giya - 

Super