Re: IDL runtime and X window [message #76962 is a reply to message #76959] |
Wed, 20 July 2011 14:59   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 7/20/11 3:36 PM, Deckard++; wrote:
> I have created a runtime application that is intended to run some
> simulation code on one of our lab servers. The lab only has a runtime
> license for this server, which means that I have no way to run this
> code from the IDL prompt. I have created my runtime application, saved
> it in a .sav file and tested it like this:
>
> idl -rt=myapp.sav
>
> It works fine on my development machine, but when I transfer it our
> the lab server and executes the same command, it starts IDL and then
> opens a window with the text "IDL Virtual Machine. Distribution
> platform to run IDL applications. Upgrade to a development license of
> IDL." and the IDL logo, and you have to click a button called "Click
> to continue" to actually run your code!
>
> The big problem here is that my code has to run for ~2 weeks, and I
> have to run it in a detached/background process. If I launch IDL in
> the background (followed by&) and then close the ssh connection to
> the server, it will terminate idl because the X window link is broken:
>
> X connection to localhost:10.0 broken (explicit kill or server
> shutdown).
>
> And if I don't forward the display over ssh, IDL will display the
> following error and quit without executing the code:
>
> % Unable to connect to X Windows display: :0.0
> % Unable to open X Windows display.
> Is your DISPLAY environment variable set correctly?
>
> This is crazy because this window is totally useless and my code has
> no need for X window display. Can you help me? Do you know how to
> avoid having this window?
I don't believe the lab server is seeing your runtime license. When I do
"idl -rt=myapp.sav", I don't get a window popping up, but if I do "idl
-vm=myapp.sav" I do get a window. IDL will default to using the Virtual
Machine (and it's window is the price you pay for using the VM) if you
don't have a license.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
|
|
|