From: robert on
Hi all,

This command worked in opensuse 11.1 :

15 13 * * * /usr/bin/xmessage -display :0.0 test_me

Trying to track down the problem with this command:

29 11 * * * /usr/bin/xmessage -display :0.0 test_me > /home/iksrazal/
job.log 2>&1

I get:

No protocol specified
Error: Can't open display: :0.0

I get the same error with this command:

37 11 * * * export DISPLAY=:0.0; /usr/bin/xmessage -display :0.0
test_me > /home/iksrazal/job.log 2>&1

I tried this command as an alternative:

40 11 * * * DISPLAY=:0.0 /usr/bin/notify-send Test "This is a test"
> /home/iksrazal/job.log 2>&1

and got:

libnotify-Message: Unable to get session bus: /bin/dbus-launch
terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.

Any ideas?

From: Rob on
robert <robertlazarski(a)gmail.com> wrote:
> Hi all,
>
> This command worked in opensuse 11.1 :
>
> 15 13 * * * /usr/bin/xmessage -display :0.0 test_me

No idea what is going on, but you could try localhost:0.0 as
the display name. That will force a TCP socket instead of
a unix_domain socket.
From: robert on
On 22 dez, 12:11, Rob <nom...(a)example.com> wrote:
> robert <robertlazar...(a)gmail.com> wrote:
> > Hi all,
>
> > This command worked in opensuse 11.1 :
>
> > 15 13 * * * /usr/bin/xmessage -display :0.0 test_me
>
> No idea what is going on, but you could try localhost:0.0 as
> the display name.  That will force a TCP socket instead of
> a unix_domain socket.

55 12 * * * /usr/bin/xmessage -display localhost:0.0 test_me > /home/
iksrazal/job.log 2>&1

Resulted in:

Error: Can't open display: localhost:0.0
From: robert on
On 22 dez, 13:23, robert <robertlazar...(a)gmail.com> wrote:
> On 22 dez, 12:11, Rob <nom...(a)example.com> wrote:
>
> > robert <robertlazar...(a)gmail.com> wrote:
> > > Hi all,
>
> > > This command worked in opensuse 11.1 :
>
> > > 15 13 * * * /usr/bin/xmessage -display :0.0 test_me
>
> > No idea what is going on, but you could try localhost:0.0 as
> > the display name.  That will force a TCP socket instead of
> > a unix_domain socket.
>
> 55 12 * * * /usr/bin/xmessage -display localhost:0.0 test_me > /home/
> iksrazal/job.log 2>&1
>
> Resulted in:
>
> Error: Can't open display: localhost:0.0

This is what ended up working for me:

50 11 * * * DISPLAY=:0.0 /usr/bin/xmessage -display :0.0 test_me