comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: cron jobs, calling IDL, X windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: cron jobs, calling IDL, X windows [message #37650] Tue, 13 January 2004 07:34
supernova_krose is currently offline  supernova_krose
Messages: 4
Registered: March 2003
Junior Member
Thanks for the tip. unsetenv DISPLAY included in the script right
before the call to IDL seemed to fix the problem.

Kay
Re: cron jobs, calling IDL, X windows [message #37658 is a reply to message #37650] Mon, 12 January 2004 11:09 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
supernova_krose@hotmail.com (Kay) writes:
> I've got a script called by cron that, embedded in it, calls IDL. The
> code writes everything to Z buffers and then PNG files, so shouldn't
> need X windows at all. And, if I have a session open on the machine
> that is running cron, everything works fine. However, our system logs
> me off at night, and when the script tries to run then, I get an error
> that says something to the effect that an Xlib connection is refused
> by the server. This appears to occur at the initial calling of IDL.
> Is there anyway to call IDL and specifically tell it it doesn't need
> any X windows, so that it will run even when my account is logged off?

This comes up every now and then. The first step is to be sure that
your DISPLAY environment variable is not set, before calling IDL.
Depending on your shell, you would either do "unset DISPLAY; export
DISPLAY" or "unsetenv DISPLAY", before calling IDL.

The second step is to set the Z buffer device very close to the top of
your program.

Happy scripting,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: comparing and concatenating arrays...please help!!
Next Topic: Re: working with colours

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:44:18 PDT 2025

Total time taken to generate the page: 0.00508 seconds