Re: IDL and BASH scripts [message #68317 is a reply to message #68227] |
Fri, 09 October 2009 11:42  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Oct 8, 5:49 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Hi guys,
>
> I wrote a script to help me with the most common actions I always do
> in IDL. I copy some folders, I update some files and finally I call
> IDL to do some actions.
> Normally I use something like this:
>
> idl <<!here
> some_actions
> @my_program.pro
> resolve_all
> save, filename='my_program.sav', /routines
> exit
> !here
>
> It works good but I've a problem if I try to run this code inside a
> case statement. My idea is to execute this code as an optional
> argument for my script. When I try to do it I've an error:
> here-document at line 127 delimited by end-of-file (wanted `!here')
> unexpected end of file
>
> I don't understand the error and I don't know if there are more
> options to call IDL and do some actions from a BASH script. Can
> anybody help ? Thanks,
> nata
It looks like the end of the here document is not getting recognized,
so it is complaining that it ran to the end of the file without ending
the here document. My first guess is that the problem may come from
the limiter starting with !, which makes it look like 'here' preceded
by the ! operator. You can try replacing the delimiter with some odd
sequence of characters that does not include any possibly-special
characters.
|
|
|