passing arguments to a .sav file [message #20587] |
Thu, 13 July 2000 00:00  |
deckard_007
Messages: 2 Registered: July 2000
|
Junior Member |
|
|
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.
Thanks,
Henk
Sent via Deja.com http://www.deja.com/
Before you buy.
|
|
|
Re: passing arguments to a .sav file [message #20671 is a reply to message #20587] |
Fri, 14 July 2000 00:00  |
Dick Jackson
Messages: 347 Registered: August 1998
|
Senior Member |
|
|
Hi again,
The word-wrapping in my last posting didn't help at all. Let's try again:
Call IDL runtime with by issuing these commands to a DOS shell:
CD <AppDir> (where <AppDir> is directory containing App.sav)
C:\RSI\IDL53\bin\bin.x86\idlrt.exe app,'a-passed-string',parm1=42,/parm2
^---------your-path-here---------^ ^-ABSOLUTELY-NO-SPACES-ALLOWED-HERE-^
This launches IDLRT, calling the procedure 'app' which it finds in app.sav,
passing the three parameters as if it were done from the IDLDE command line.
I could not find a way to get around the no-spaces restriction, perhaps
someone can make a suggestion.
Sorry for any confusion arising from my previous posting.
Cheers,
--
-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
|
|
|