FG

using either notify-send or zenity in Cron

Fresh3 days ago
Mar 15, 20265099 views
Confidence Score0%
0%

Problem

I am trying to get cron to provide a screen alert when it spots a particular situation. I know the script is executed each minute but it will not display on the screen. script executed is: Running Gnome from the Mandriva distribution. Any ideas?

Error Output

DISPLAY=:0.0 /usr/bin/notify-send -t 1000 Test "This is a test"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: using either notify-send or zenity in Cron

Low Risk

Is this your user's crontab, not root's crontab? I'd suggest that, at least for debugging, you create a script as John T describes: Here's what the script might look like: Note that there's no ":" before DISPLAY, as you seem to have in your question…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment