How do I run IDL with non-interactive backend? [message #79262] |
Sun, 19 February 2012 21:57  |
John Yeukhon Wong
Messages: 5 Registered: February 2012
|
Junior Member |
|
|
I am not sure if people are familiar with MATLAB, but supposed we do
this on a Linux machine without the pretty GUI:
matlab -nosplash -nodesktop -r "my_script; quit"
There are a few more pretty extra commands I can added to the line
above.
Now back to IDL. We are running IDL from a linux machine, and we have
a webclient which basically sends the requests and asks the machine to
execute the IDL script.
So far we have this
idl -e "my_hello_world_script"
PRO my_hello_world_script
PRINT, "HELLO IDL USERS!"
END
This is fine.
But if we want to make a plot, and use the same command --> idl -e
"my_plot" will say
"Unable to open X-terminals."
My question is: does anybody know the command to force IDL execute in
a non-interactive mode (meaning no GUI windows pops out), and will
quit IDL as well (like the MATLAB command above, if we don't quit,
MALTAB will just sit there running"
Thank you.
|
|
|
Re: How do I run IDL with non-interactive backend? [message #79350 is a reply to message #79262] |
Mon, 20 February 2012 10:14  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
http://groups.google.com/group/comp.lang.idl-pvwave/msg/adbb 2660db16914c
On Feb 20, 3:57 am, John Yeukhon Wong <gokoproj...@gmail.com> wrote:
> I am not sure if people are familiar with MATLAB, but supposed we do
> this on a Linux machine without the pretty GUI:
>
> matlab -nosplash -nodesktop -r "my_script; quit"
>
> There are a few more pretty extra commands I can added to the line
> above.
>
> Now back to IDL. We are running IDL from a linux machine, and we have
> a webclient which basically sends the requests and asks the machine to
> execute the IDL script.
>
> So far we have this
> idl -e "my_hello_world_script"
>
> PRO my_hello_world_script
> PRINT, "HELLO IDL USERS!"
> END
>
> This is fine.
> But if we want to make a plot, and use the same command --> idl -e
> "my_plot" will say
>
> "Unable to open X-terminals."
>
> My question is: does anybody know the command to force IDL execute in
> a non-interactive mode (meaning no GUI windows pops out), and will
> quit IDL as well (like the MATLAB command above, if we don't quit,
> MALTAB will just sit there running"
>
> Thank you.
|
|
|