Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Today's tips and tricks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Tue Nov 04, 2003 5:54 pm    Post subject: Today's tips and tricks Reply with quote

I tried the tip from the GWN but it is not working. I ran "at" with the -m command and got an email that said
Quote:
** CRITICAL **: Unable to open display


To test:
Code:
at -m -v +1minute
at> xmms
at> <CTRL-D>


atq shows the job and in 1 minute I get the email. So the scheduling part is working.

I am running these commands from the gnome-terminal. If I run xmms from the terminal it is fine. What do I need to set to get this to work with at?

Thx
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
Unne
l33t
l33t


Joined: 21 Jul 2003
Posts: 616

PostPosted: Tue Nov 04, 2003 8:32 pm    Post subject: Reply with quote

You need to give permissions for other users to access your X server. CTRL+ALT+F1 to a console and try to run XMMS and you should get the same error. If you export DISPLAY=:0.0 and then run XMMS I think it'll work. I also read that you can use xhost to do the same thing, but I've never used it.
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Wed Nov 05, 2003 12:19 am    Post subject: Reply with quote

Thanks for your response Unne. Unfortunately that did not work. What I did, in a gnome-terminal was:

Code:
export DISPLAY=:0.0
at -m +1minute
at>xmms
at><CTRL-D>


In one minute I got an email that said:
Quote:
** CRITICAL **: Unable to open display


I also tried:
Code:
xhost +localhost
but got the same error.

Any other ideas?

Thx
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
Unne
l33t
l33t


Joined: 21 Jul 2003
Posts: 616

PostPosted: Wed Nov 05, 2003 3:03 am    Post subject: Reply with quote

How about

Code:
at -m +1minute
at> export DISPLAY=:0.0
at> xmms
at><CTRL-D>
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Wed Nov 05, 2003 3:49 am    Post subject: Reply with quote

That did it! Excellant!!! Thank you very much! :D
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum