Find the answer to your Linux question:
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. ...
  1. #1
    Linux Newbie rinjo's Avatar
    Join Date
    Feb 2007
    Location
    Bangalore, India
    Posts
    224

    Question 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.

    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:
    Can anyone help me solve this issue, so that the display is opened.
    Basically my idea is to run a job that will trigger some display based executable.

    regards
    Rinjo
    Linux Rocks!!!!

    Rinjo

  2. #2
    Just 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.
    Code:
    export DISPLAY=:0.1
    
    /usr/bin/gimp
    ps. I am using CentOS release 5.4, hope it works for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...