When I use 'at' to execute a command that involves displaying a dialog on X/gnome, it never works: "Can't open display" .
I have done: 'xhost +', and 'xhost +local:root'. Still no go.
example:
$ at now + 35 minutes -f ~mjbjr/bin/washer_done.sh
washer_done.sh:
[EMAIL PROTECTED] mjbjr $ cat bin/washer_done.sh
beep -f 1000 -n -f 2000 -n -f 1500 -n -f 10 -l 750 -n -f 1000 -n -f 2000 -n -f 1500 -n -f 10 -l 750 -n -f 1000 -n -f 2000 -n -f 1500
gdialog --title "User Notice" --msgbox " WASHER IS FINISHED " 300 400
---- 'beep' gets executed, 'gdialog' does not.
If I replace 'gdialog' with 'xmessage', same thing . If I (mjbjr) execute 'washer_done.sh' directly (no 'at'), it works fine.
The man page for 'at' says that it doesn't pay attention to the $DISPLAY env var.
Set the DISPLAY var within the script:
DISPLAY=":0.0" gdialog --title "User Notice" --msgbox " WASHER IS \ FINISHED " 300 400
-- Andrew Gaffney
-- [EMAIL PROTECTED] mailing list