[SOLVED] Xmessages Broken

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

[SOLVED] Xmessages Broken

Post by Atip »

Lately xmessages coming from 'cron' or 'at' are not displayed any longer and I get in my mail box
following:

Code: Select all

Subject: cron for user user /usr/bin/xmessage -display :0.0 message

Body: 

No protocol specified
Error: Can't open display: :0.0
If I give the same command in a terminal xmessage is being displayed.

I rely a lot on 'cron' and 'at' messages to support my aging memory. ;)

What could be broken?
Last edited by Atip on 16. Apr 2012, 03:49, edited 1 time in total.
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Xmessages Broken

Post by gapan »

What did you change lately just before this happened? Could it be that your X session is not on :0.0 anymore?
Image
Image
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Re: Xmessages Broken

Post by Atip »

gapan wrote:What did you change lately just before this happened? Could it be that your X session is not on :0.0 anymore?
I would not know exactly what I changed. As far as I recall it was only the occasional updates.

Code: Select all

$ echo $DISPLAY
:0.0
So that is alright and the command from a terminal "xmessage -display :0.0 bumbum"
displays correctl with no error message.

I will try to reinstall 'cron' and 'at'
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Re: Xmessages Broken

Post by Atip »

I reinstalled cron and 'at'. Now 'at' is working again.
xmessages coming from crontab will still not display and give error:

Code: Select all

No protocol specified
Error: Can't open display: :0.0
This is all in Fluxbox. I opened xfce4 in display :2.0 and get same error message for this display :2.0.

What is this "No protocol specified" all of a sudden? Never had this. I have some of my xmessage commands in crontab
for more than 10 years.

Again to mention xmessage is working properly from terminal command line as will as in program scripts.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Xmessages Broken

Post by Shador »

Try setting up appropriate access to your display with xhost/xauth. Have a look at their man pages.
Image
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Re: Xmessages Broken

Post by Atip »

Shador wrote:Try setting up appropriate access to your display with xhost/xauth. Have a look at their man pages.
Thanks for the hint.

Deleted ~/.Xauthority, went into init 2, started X, xmessage in crontab working. Back to init 4,
xmessage in crontab still working.

I hate gremlins. :evil:
Post Reply