arrange
December 2nd, 2009, 08:28 PM
I've been using zenity in my crontab jobs for a long time, but it stopped working in Karmic for me. I've tested different options, but none of them work, and I've come out of ideas. Could you please help me out?
Options I've tried and which worked in Jaunty
arrange@lean:~$ crontab -l
# m h dom mon dow command
* * * * * export DISPLAY=:0.0; /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * export DISPLAY=:0.0 && /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * export DISPLAY=:0; /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * DISPLAY=:0 /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * env DISPLAY=:0.0; /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * env DISPLAY=:0.0 && /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
There are no error messages in stderr or in system logs (but the command itself is there as a regular cron job - see below) . The command works perfectly from gnome-terminal. The output of whoami is arrange, so it's launched under a regular user.
Dec 2 20:12:01 lean CRON[2263]: (arrange) CMD (export DISPLAY=:0.0; /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg)
Thanks.
Options I've tried and which worked in Jaunty
arrange@lean:~$ crontab -l
# m h dom mon dow command
* * * * * export DISPLAY=:0.0; /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * export DISPLAY=:0.0 && /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * export DISPLAY=:0; /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * DISPLAY=:0 /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * env DISPLAY=:0.0; /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
* * * * * env DISPLAY=:0.0 && /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg
There are no error messages in stderr or in system logs (but the command itself is there as a regular cron job - see below) . The command works perfectly from gnome-terminal. The output of whoami is arrange, so it's launched under a regular user.
Dec 2 20:12:01 lean CRON[2263]: (arrange) CMD (export DISPLAY=:0.0; /usr/bin/zenity --info --title="Information" --text="Hello World" &> /tmp/dbg; whoami >> /tmp/dbg; date >> /tmp/dbg)
Thanks.