X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 Mar 2021 09:15 AM by  Ben Castellani
IDL on DOCKER
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Arnaldo Tomasino



New Member


Posts:
New Member


--
13 Sep 2018 04:42 AM
    I want to run a .sav file, compiled with IDL, on a Docker container.
    In the container I set up IDL 8.5.1 without a license and all the needed dependencies starting from a ubuntu:16.04 image.
    Here I start the execution of the .sav file with the command

    idl -vm=<name>.sav

    At first, I obtained this error:

    % Unable to connect to X Windows display: :0.0
    % Unable to establish X Connection.
    Segmentation fault (core dumped)

    So I tried to set up a dummy display through VNC. I installed vnc4server, set its password using the command

    printf "password\npassword\n\n" | vncpasswd

    in order not to be asked for a password when I run the command

    vnc4server

    afterwards. I set the DISPLAY environment variable with:

    export DISPLAY=$HOSTNAME:1

    and then I type the command

    idl -vm=<name>.sav.


    The problem is that the IDL virtual machine expects me to click OK on the splash window to start the execution of the script, but I have to run the save file absolutely with no GUI. Is there a way to avoid this splash screen and execute the script immediately?

    If not, is there another way to make the execution of the save file completely independent from any user interaction??



    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    03 Mar 2021 09:15 AM
    Running an IDL SAV file with no license present uses the IDL Virtual Machine. With this you will always see the pop-up splash screen which requires a manual "click to continue". To run an IDL SAV file without the pop-up dialog thus requiring no user interaction, you need an IDL Runtime license.
    You are not authorized to post a reply.