I need to show a notification from a cron job. My crontab is something like:
$ crontab -l # m h dom mon dow command * * * * * Display=:0.0 /usr
Try this when you call notify-send in your script:
notify-send
echo "PASSWORD" | sudo -u USER notify-send "your alert message"