| Forum |
|
|||||||
| Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
Error 1: rhythmbox Code:
From root@localhost.localdomain Tue Oct 4 01:05:02 2005 Date: Tue, 4 Oct 2005 01:05:02 +0530 From: root@localhost.localdomain (Cron Daemon) To: root@localhost.localdomain Subject: Cron <root@localhost> rhythmbox X-Cron-Env: <SHELL=/bin/bash> X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin> X-Cron-Env: <MAILTO=root> X-Cron-Env: <HOME=/> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root> (rhythmbox:9435): Gtk-WARNING **: cannot open display: Code:
From root@localhost.localdomain Tue Oct 4 01:06:03 2005 Date: Tue, 4 Oct 2005 01:06:03 +0530 From: root@localhost.localdomain (Cron Daemon) To: root@localhost.localdomain Subject: Cron <root@localhost> bittorrent X-Cron-Env: <SHELL=/bin/bash> X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin> X-Cron-Env: <MAILTO=root> X-Cron-Env: <HOME=/> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root> Traceback (most recent call last): File "/usr/bin/bittorrent", line 32, in ? import gtk File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 37, in ? RuntimeError: could not open display
__________________
Sometime you'll think you understand everything ...Then you'll regain consciousness |
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#3 (permalink) | |
|
Broken In
Join Date: Jul 2005
Posts: 172
|
firewall is correct. cron will most probably run GUI apps. btw i hv my doubts with this thing
Quote:
|
|
|
|
|
|
#4 (permalink) |
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
i've created the cron job as root
logged in as root and trying to run the app as root. Is that the real problem ?
__________________
Sometime you'll think you understand everything ...Then you'll regain consciousness |
|
|
|
|
#6 (permalink) |
|
FooBar Guy
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
|
Its actually possible to run GUI application from cron.
1) The user who is running X should allow X authentication from all users by giving: $ xhost + 2) The cron script should know on which X display to draw the application by: $ export DISPLAY=:0.0 Now this will work for GUI applications started from all users.
__________________
- -- http://www.MovieAB.com - A tiny movie mashup! |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|