Re: passing arguments to a .sav file [message #20578] |
Thu, 13 July 2000 00:00 |
Dick Jackson
Messages: 347 Registered: August 1998
|
Senior Member |
|
|
<deckard_007@my-deja.com> wrote in message
news:8kkaev$7v9$1@nnrp1.deja.com...
> Hi,
>
> does anyone know whether it's possible to pass arguments to an exported
> .sav idl-runtime file ? I cannot find anything about this in the
> documentation.
> I want to be able to use my idl-program totally not interactive and I
> thought a .sav file would be the best way.
Hi,
Someone else may have a more definitive answer, but this is a PC-specific
solution for a sample IDL runtime application App.sav:
; Calling IDL runtime with parameters from DOS:
;
; <AppDir> is directory containing App.sav
;
; cd <AppDir>
; C:\RSI\IDL53\bin\bin.x86\idlrt.exe
app,'a-passed-string',parm1=42,/parm2
; ^---------your-path-here---------^
^-ABSOLUTELY-NO-SPACES-ALLOWED-HERE-^
Good luck!
--
-Dick
Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / Voice/Fax: +1-403-242-7398
|
|
|
Re: passing arguments to a .sav file [message #20585 is a reply to message #20578] |
Thu, 13 July 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Henk writes:
> does anyone know whether it's possible to pass arguments to an exported
> .sav idl-runtime file ? I cannot find anything about this in the
> documentation.
> I want to be able to use my idl-program totally not interactive and I
> thought a .sav file would be the best way.
I could be wrong about this, but I don't think you can
pass arguments to a runtime application.
It would certainly be possible for a runtime application
to read, for example, a configuration file that you could
manipulate to get different behavior. But I can't think of
a way to get arguments into the program directly.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|