comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL and BASH scripts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL and BASH scripts [message #68317 is a reply to message #68227] Fri, 09 October 2009 11:42 Go to previous message
penteado is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: generate image to a no display environment
Next Topic: Re: CDAT

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 06:22:05 PDT 2025

Total time taken to generate the page: 1.60180 seconds