Re: Problem with web server and DISPLAY?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 6 Jun 2007 12:53:27 -0600 (MDT)

Hi John,

What kind of workstation (i.e. PS, PDF, X11, or NCGM file) are you
opening? I think your script should work just fine as long as you are
not going to an X11 window.

We do have an internal PNG driver that we don't document or talk about
much, because it has a dependency on the X11 driver that causes a
problem in some cases. If you are sending your images to a PNG file,
then this may be what the problem is.

Otherwise, if you are going to a PS, PDF, or NCGM, you shouldn't be
seeing this message.


On Wed, 6 Jun 2007, Ertl, John C CIV 63134 wrote:

> ALL,
> I have a simple program that makes an image from a global grid and,
> thanks to help from the list, a sub region of the grid. This works
> great from the command line but I am now trying to make this work via a
> cgi script. This is where my problem is happening.
> When I submit the info via a XML post to the cgi I get errors like these
> in the apache logs:
> warning:GKS:GOPWK: --X driver error: DISPLAY environment variable not
> set
> !fatal:Workstation with PID#7 is not open,
> !fatal:Unable to open Workstation-Can't Create,
> fatal:PID #-4 can't be found in NhlSetValues, referer:
> If I run the code from the command line (no apache server) I get no
> errors and the image is made just fine. Is there a way to bypass the
> DISPLAY issue? Do I need to have DISPLAY set in the apache environment
> (I do not control that environment)? When I built a web service several
> years ago I vaguely remember this issue but in a search I could not find
> our solution and that code is very old early Ngl.
> John Ertl
> _______________________________________________
> pyngl-talk mailing list
pyngl-talk mailing list
Received on Wed Jun 06 2007 - 12:53:27 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 02 2007 - 07:43:42 MDT