Re: idl running under server... [message #31124] |
Wed, 12 June 2002 11:52 |
Liam E. Gumley
Messages: 378 Registered: January 2000
|
Senior Member |
|
|
Guillaume Dargaud wrote:
>
> I wrote a perl script that takes form data and executes an idl program,
> returning graphics.
> It works fine when I run it from the command line, but idl doesn't do a
> thing under the server.
> Anyone has an idea ?
>
> The differences I could tell are:
> - different environment variables (no IDL_PATH, IDL_DIR)
> - different user/group (nobody/nobody).
When you execute the script
(1) Does IDL even start up? You may need to explicitly set up the IDL
environment in the script , e.g.
source /usr/local/rsi/idl/bin/idl_setup
or
. /usr/local/rsi/idl/bin/idl_setup.ksh
(2) Is an X client available when the script runs? If your IDL code is
creating graphics and you are not using the Z-buffer, then an X-client
must be available in order for graphics windows to be created. This is
why people often use the Z-buffer instead of graphics windows when
running scripts that call IDL in the background.
I recommend trying a very small IDL test program first to make sure your
setup is working. For example, create a plot, and save it to a JPEG
file.
Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
|
|
|