Page 1 of 1
[SOLVED] Xmessages Broken
Posted: 12. Apr 2012, 01:09
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?
Re: Xmessages Broken
Posted: 12. Apr 2012, 22:07
by gapan
What did you change lately just before this happened? Could it be that your X session is not on :0.0 anymore?
Re: Xmessages Broken
Posted: 13. Apr 2012, 01:07
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.
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'
Re: Xmessages Broken
Posted: 14. Apr 2012, 23:32
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.
Re: Xmessages Broken
Posted: 15. Apr 2012, 09:17
by Shador
Try setting up appropriate access to your display with xhost/xauth. Have a look at their man pages.
Re: Xmessages Broken
Posted: 16. Apr 2012, 03:59
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.
