Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] crontab + scrot
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW
View previous topic :: View next topic  
Author Message
Cieslo
n00b
n00b


Joined: 09 Jan 2007
Posts: 30
Location: Katowice, Poland

PostPosted: Tue Apr 17, 2007 6:21 am    Post subject: [SOLVED] crontab + scrot Reply with quote

Witam,

mam mały problem z crontabem, otóż odpalam sobie
Code:
crontab -e

i wprowadzam takie coś
Code:
* * * * * scrot /home/cieslo/public_html/pulpit.jpg

Po chwili sprawdzam dead.letter a w nim
Code:
giblib error: Can't open X display. It *is* running, yeah?

Jeśli ręcznie zapodam polecenie w konsoli to wszystko jest ok.
Dodam, że próbowałem to zrobić dla roota i zwykłego usera (crontaba) i za każdym razem to samo. Da się jakoś to obejść?


Last edited by Cieslo on Tue Apr 17, 2007 9:24 am; edited 1 time in total
Back to top
View user's profile Send private message
kurak
Guru
Guru


Joined: 13 Jul 2006
Posts: 492

PostPosted: Tue Apr 17, 2007 6:47 am    Post subject: Reply with quote

Quote:
Po chwili sprawdzam dead.letter a w nim Kod:
giblib error: Can't open X display. It *is* running, yeah?
Przełącz się na inne tty, i sprawdz czy działa, nie bedzie działac, bo musi być odpalony z poziomu Xorg :)
_________________
Open Your Mind, Use Open Source
Back to top
View user's profile Send private message
Cieslo
n00b
n00b


Joined: 09 Jan 2007
Posts: 30
Location: Katowice, Poland

PostPosted: Tue Apr 17, 2007 7:39 am    Post subject: Reply with quote

Ok, dzięki za odpowiedź. Teraz tylko muszę ustalić jak zmienić tty przy odpalaniu crona (pierwszy raz coś takiego robię).
Back to top
View user's profile Send private message
rzabcio
Guru
Guru


Joined: 07 Nov 2005
Posts: 419
Location: Poznań

PostPosted: Tue Apr 17, 2007 8:16 am    Post subject: Reply with quote

Nie wystarczy dać tak?
Code:
DISPLAY=:0 scrot /home/cieslo/public_html/pulpit.jpg

_________________
--------------------------------------
Jesus saves. Cthulhu eats. (:=
--------------------------------------
Back to top
View user's profile Send private message
Cieslo
n00b
n00b


Joined: 09 Jan 2007
Posts: 30
Location: Katowice, Poland

PostPosted: Tue Apr 17, 2007 9:23 am    Post subject: Reply with quote

rzabcio wrote:
Nie wystarczy dać tak?
Code:
DISPLAY=:0 scrot /home/cieslo/public_html/pulpit.jpg


Zadziałało :). Dzięki za pomoc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW 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