我试图让 cron 在发现特定情况时提供屏幕警报。我知道脚本每分钟执行一次,但它不会显示在屏幕上。
执行的脚本是:
DISPLAY=:0.0 /usr/bin/notify-send -t 1000 Test "This is a test"
从 Mandriva 发行版运行 Gnome。
有任何想法吗?
gnome notifications cron mandriva
cron ×1
gnome ×1
mandriva ×1
notifications ×1