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 #11513 is a reply to message #11510] Tue, 31 March 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior 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

As far as I know, this can't be done the way you want to
do it. You do have one other option, however. You can define
environment variables for your input parameters. Then your
bactchprog.pro program calls GETENV to get the values of
the environment variables before passing these onto the other
programs that you want to run in batch mode.

Naturally, the return value from GETENV is a string, so you
will have to take care to convert the value to a number, if
that is what you want, etc. I've never tried it myself, but
I think it is possible.

Cheers,

David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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:11:39 PDT 2025

Total time taken to generate the page: 0.64093 seconds