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 #11510 is a reply to message #11496] Tue, 31 March 1998 00:00 Go to previous messageGo to previous message
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <MPG.f8b2018b0067093989770@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:

> 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
>> 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.

Here's a variation along those lines. You could set the environment
variable IDL_STARTUP to point to different batch programs, then call IDL.
This would start IDL and run the batch file pointed to by IDL_STARTUP.
Similarly, you could keep IDL_STARTUP pointing to the same file, but
create that file using your UNIX program (shell, perl, etc.). Get the help
of your local UNIX shell programming fanatic and you might end up with
something pretty entertaining. I was doing stuff like this a couple years
back. I could dig up some ideas from those efforts if you're interested.
...
> Cheers,
>
> David

--
Mike Schienle Interactive Visuals
mgs@sd.cybernex.net http://ww2.sd.cybernex.net/~mgs/
[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: Fri Oct 10 21:11:11 PDT 2025

Total time taken to generate the page: 0.55936 seconds