Results 1 to 2 of 2
Hi All,
I am trying to run GIMP using a Cron job, the job gets submitted/executed in time, but its unable to open gimp display.
I get the following mail.
...
- 12-17-2009 #1
Problem in running Cron job
Hi All,
I am trying to run GIMP using a Cron job, the job gets submitted/executed in time, but its unable to open gimp display.
I get the following mail.
Can anyone help me solve this issue, so that the display is opened.Code:Subject: Cron <rinjo@localhost> /usr/bin/gimp-2.4 Date: Thu, 17 Dec 2009 21:04:01 0530 (IST) Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/home/rinjo> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=rinjo> X-Cron-Env: <USER=rinjo> cannot open display:
Basically my idea is to run a job that will trigger some display based executable.
regards
RinjoLinux Rocks!!!!
Rinjo
- 12-18-2009 #2Just Joined!
- Join Date
- Jan 2008
- Posts
- 14
I made a script that that calls gims and got following error:
GIMP could not initialize the graphical user interface.
Make sure a proper setup for your display environment exists.
Once I exported the DISPLAY env var in the script. it worked fine.
ps. I am using CentOS release 5.4, hope it works for you.Code:export DISPLAY=:0.1 /usr/bin/gimp


Reply With Quote