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

Home » Public Forums » archive » IDL Bridge
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL Bridge [message #94010 is a reply to message #94009] Tue, 20 December 2016 07:28 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Tuesday, December 20, 2016 at 7:58:35 AM UTC-7, s.fd...@gmail.com wrote:
> Dear all,
>
> I'm trying to automatize the download of files from the internet and, in order to speed up the process, I use the IDL_IDLBRIDGE to download 2 files at the same time.
> However, when I put the download in a crontab I get the following error (or when I execute the command from a remote machine) :
>
> % Compiled module: SCARICO_12.
> % Loaded DLM: IDL_IDLBRIDGE.
> /usr/local/bin/wget ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.20 16121912/gfs.t12z.pgrb2.0p25.f000
> % Restored file: IDL_IDLBRIDGE::EXECUTETIMER.
> % WIDGET_BASE: Unable to connect to X Windows display: :0.0
> % SCARICO_12: IDL_IDLBridge: Unable to establish X Connection.
> % Execution halted at: SCARICO_12 40 /Users/stefano/scarico/scarico_12.pro
>
>
> How can I solve this problem?
> Thanks
> Stefano

Hi Stefano,
In general, this error will be displayed if you attempt to use UI elements in a headless environment that lacks access to an X Windows server, such as in a cron job.

In this case, there's some code that's making a timer widget call, which isn't available in this environment.

In this case your code uses a method "IDL_IDLBridge::ExecuteTimer" that is not part of the base distribution of the class. There is a good chance that this is part of the issue. Someone must have written a .pro file that executes some timer widget logic, and packaged the logic up in a .pro file.

If possible, it would make sense to replace the logic associated with timer widget calls in your code with calls to the TIMER() class that was introduced in IDL 8.3, http://www.harrisgeospatial.com/docs/TIMER.html. It gets around the need for an underlying X Windows server.

Jim P.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: All twisted up over reverse indices!
Next Topic: date/time generation

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

Current Time: Wed Oct 08 13:20:59 PDT 2025

Total time taken to generate the page: 0.00387 seconds