This is my python script for notify send:
#! /usr/bin/env python
import os
mstr='The scoreis 102/3'
title="SCORE"
os.environ.setdefault('DISPLAY', ':0.0')
os.system('notify-send -i "notification-message-IM" "'+title+'" "'+mstr+'"')
It works normally when I run the script,but while trying to run it from cron it is not working
I have tried reference from this links: Cron scheduler of python script using notify-send
Even in crontab i have tried to run a notify-send command like this:
* * * * * export DISPLAY=:0.0 && /usr/bin/notify-send "How are you"
But of no help.
Is there anything I am doing wrong please suggest.