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

Home » Public Forums » archive » Newbie trying out IDL scripts
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
Newbie trying out IDL scripts [message #80487] Wed, 13 June 2012 12:13
John Yeukhon Wong is currently offline  John Yeukhon Wong
Messages: 5
Registered: February 2012
Junior Member
Hey guys,

I am an undergraduate student working on a scientific collaborative platform. One of the languages we supported is IDL.

We don't have X Windows setup properly. We have trouble doing that, and in fact we don't want windows to popup because we are running CRON jobs. SO everything has to be done on the background, and our front-end needs to display the results...

I found this script to do error catching, notify users that they their scripts are not compatible with our system...
http://www.idlcoyote.com/code_tips/hasdisplay.html


How do you use this to run a script called "plots.pro"? What should be put after the THEN? How should it be used?

At the end, I need to put that command in a .sh shell script file...

Example:
IDL> IF NOT CanConnect() THEN PRINT, "hello"
% WINDOW: Unable to connect to X Windows display: :0.0
hello

Okay.. this looks okay....

But, I don't need to run PRINT, I need to run a script....
I took my plots.pro and data file from here
http://math.arizona.edu/~swig/documentation/idl/

TIps?

Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: cgColorBar with /device
Next Topic: Re: Newbie trying out IDL scripts

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

Current Time: Wed Oct 08 19:34:59 PDT 2025

Total time taken to generate the page: 0.00592 seconds