Notifications 通知从cron发送不工作

Notifications 通知从cron发送不工作,notifications,cron,ubuntu-14.04,crontab,Notifications,Cron,Ubuntu 14.04,Crontab,***导出显示=:0.0&&usr/bin/notify发送“Hello world!” 我将上面的命令添加到crontab中,notifysend是从终端工作,但不是从cron工作。还检查了日志,它每分钟工作一次,但没有显示通知。不确定原因,但这起作用。而是在脚本中调用notify-send-directed * * * * * export DISPLAY=:0.0 && /bin/sh /home/notifyCustom.sh

***导出显示=:0.0&&usr/bin/notify发送“Hello world!”


我将上面的命令添加到crontab中,notifysend是从终端工作,但不是从cron工作。还检查了日志,它每分钟工作一次,但没有显示通知。

不确定原因,但这起作用。而是在脚本中调用notify-send-directed

* * * * * export DISPLAY=:0.0 && /bin/sh /home/notifyCustom.sh