X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



8057 Rate this article:
5.0

Running Unix IDL batch jobs without a physical X-display device

Topic:
This Help Article discusses how to use IDL routines that require an X-display when there is not a physical display device (e.g., a CRON job).

Discussion:
To run an X program as a CRON job without a local X server running, use a virtual X window manager such as Xvfb (X Virtual Frame Buffer). This solution does not require you to modify existing code.

Some general information about xvfb  can be found here:
http://en.wikipedia.org/wiki/Xvfb

You should be able to  install xvfb by using  the package manager provided by your distribution (such as yum, apt-get, or rpm). For example,  on a distibution that uses yum as its package manager,  you could type the following as root:
yum install Xvfb

On Ubuntu systems, you can use the apt-get command to install Xvfb:
sudo apt-get insall xvfb

Steps for using Xvfb on a Unix system:

1. Start the virtual frame buffer:

   /usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 &

2. To set the current display to use the virtual frame buffer for graphics
display, type:

   setenv DISPLAY :1.0

3. Now you can start IDL. If you have set-up the idl environment, you can do this by typing "idl" into the terminal. If not, you can setup the environment by running the appropriate set-up script in the bin directory of the IDL installation.  

Thanks to David Foster who posted some of the information in this article on the comp.lang.idl-pvwave newsgroup.
Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »