I wanted to schedule a job to run at a specific time just once. So, I used the at command:
at now -f /path/to/task.sh
Now, in the task script, I wrote code to display notifications using notify-send in an infinite loop:
while true do notify-send "Reminder!!" "Reminder text" done
I did this because I did not want the notification to go away by itself, and thought that I will be able to stop the notifications manually by killing its process.
So, I executed
pkill notify-osd, but another instance of the process starts as soon as I do this.
I also tried by removing this job from that
at queue by executing
atrm <job-id>, but the notifications did not stop.
So, now I have got notifications being displayed continuously displayed on my screen.
How do I stop it?
I am using Ubuntu 14.04 LTS