*******Note: I think that I might have posted this originally in a defunct forum as I was the only thread, sorry if this is a double post everybody.
I am attempting to make a script that runs a set of idl commands to simplify a long complicated process thats I perform weekly. What I usually do is in terminal
$ idl
IDL > .r glmutlsmaps.pro
IDL > maps, dayrange='2009d100'
IDL > exit
(where maps is the header of the profile I just compiled and dayrange is a variable in the file)
Now, what I was thinking of doing in my bash script was
idl -e ".r glmutlsmaps.pro"
idl -e "maps, dayrange='2009d100'"
, but this doesn't work because you have to compile the pro file:
$ idl -e ".r glmutlsmaps.pro"
IDL Version 6.3 (linux x86 m32). (c) 2006, Research Systems, Inc. Installation number: 29XXX. Licensed for use by: JXXXXXXXXXXXXX % Compiled module: MAPS.
$ idl -e "maps,dayRange='2009d100'"
IDL Version 6.3 (linux x86 m32). (c) 2006, Research Systems, Inc. Installation number: 29XX. Licensed for use by: JXXXXXXXXXXXXX % Attempt to call undefined procedure/function: 'MAPS'. % Execution halted at: $MAIN$
Any help would be much appreciated, Is there some way of getting both commands to execute in sequence in a single session of idl from bash script?
-Daniel
|