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

Home » Public Forums » archive » Re: IDL batch mode: Command line args?
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 batch mode: Command line args? [message #11483 is a reply to message #11482] Thu, 02 April 1998 00:00 Go to previous messageGo to previous message
mallors is currently offline  mallors
Messages: 76
Registered: November 1997
Member
>> Mark Elliott (mark@mail.mmrrcc.upenn.edu) writes:
>>
>>> I'd like to run IDL (from UNIX) in batch mode with a command
>>> like:
>>>
>>> unixprompt> idl batchprog.pro
>>>
>>> How can I provide additional arguments to be used by the batch
>>> program. For example, is there a syntax like:
>>>
>>> unixprompt> idl batchprog.pro inputfile.txt
>>>
>>> or
>>>
>>> unixprompt> idl batchprog.pro 5 3.78 "John Doe" 24.0

You can read your data at the top of the batch file,
with input redirected from a separate text file.
Here is an example, with an IDL batch file test.pro
reading input from the file input.dat


----- file test.pro -----
READ, A
READ, B
READ, C
HELP, A, B, C
----- END file test.pro -----

----- file input.dat -----
10
20
30
----- END file input.dat -----


Then from the unix prompt,

$ idl test < input.dat

A FLOAT = 10.0000
B FLOAT = 20.0000
C FLOAT = 30.0000


--
Robert S. Mallozzi
http://cspar.uah.edu/~mallozzir/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FFT transforms for images
Next Topic: How do you sort an array in IDL?

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

Current Time: Sat Oct 11 07:10:59 PDT 2025

Total time taken to generate the page: 0.24001 seconds