I'm wondering how to call a multi-line IDL command from a shell script. For example, to call a one-line command idl_dummy.pro I can do:
idl -e "idl_dummy"
I have a set of codes that take more than one line to execute in IDL. Within IDL I need to run:
.comp /a_different_directory/idl_file.pro
ans = idl_dummy(123456)
How can I run this code from a shell script?