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

Home » Public Forums » archive » Re: passing multiple commands to idl from command line
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: passing multiple commands to idl from command line [message #50892] Wed, 25 October 2006 12:57 Go to next message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Wed, 25 Oct 2006, Dominic wrote:

> Hi,
>
> So, you can do:
>
> % echo "print, 'foo' & print, 'bar' " | idl
>
> but is there a way to have multiple ".compile" commands on one line?
>
> % echo "print, 'compiling foo & .compile 'foo.pro' & print, 'compiling
> bar & .compile 'bar.pro' " | idl
>

% echo "print, 'compiling foo & .compile 'foo.pro' & print, 'compiling
bar' & .compile 'bar.pro' " | sed 's/&/\n/g' | idl

> I need to call .compile multiple times and dont want to have to start
> IDL every time.
> Is there a way to do this?
>
> Is there a better way to achieve this without starting up idl? i.e.
> Can you use the compiler without starting up IDL?
>

the compiler is built into IDL, so the answer is no.

regards
lajos


> thanks and best regards,
>
> dometz
>
>
Re: passing multiple commands to idl from command line [message #50894 is a reply to message #50892] Wed, 25 October 2006 12:19 Go to previous messageGo to next message
Dominic[1] is currently offline  Dominic[1]
Messages: 13
Registered: October 2006
Junior Member
To: " Is there a better way to achieve this without starting up idl?
i.e.
> Can you use the compiler without starting up IDL?"

So, can I call whatever compiler .compile uses from the terminal (bash)
directly without firing up IDL?

dominic

Dominic wrote:
> Hi,
>
> So, you can do:
>
> % echo "print, 'foo' & print, 'bar' " | idl
>
> but is there a way to have multiple ".compile" commands on one line?
>
> % echo "print, 'compiling foo & .compile 'foo.pro' & print, 'compiling
> bar & .compile 'bar.pro' " | idl
>
> I need to call .compile multiple times and dont want to have to start
> IDL every time.
> Is there a way to do this?
>
> Is there a better way to achieve this without starting up idl? i.e.
> Can you use the compiler without starting up IDL?
>
> thanks and best regards,
>
> dometz
Re: passing multiple commands to idl from command line [message #50991 is a reply to message #50892] Wed, 25 October 2006 13:21 Go to previous message
Dominic[1] is currently offline  Dominic[1]
Messages: 13
Registered: October 2006
Junior Member
Bummer but so what about:

So, you can do:

% echo "print, 'foo' & print, 'bar' " | idl

but is there a way to have multiple ".compile" commands on one line?

% echo "print, 'compiling foo & .compile 'foo.pro' & print, 'compiling
bar & .compile 'bar.pro' " | idl

% echo "print, 'compiling foo & .compile 'foo.pro' & print, 'compiling
bar' & .compile 'bar.pro' " | sed 's/&/\n/g' | idl

I need to call .compile multiple times and dont want to have to start
IDL every time.
Is there a way to do this?

thanks & best regards,

dometz



FĂ–LDY Lajos wrote:

> On Wed, 25 Oct 2006, Dominic wrote:
>
>> Hi,
>>
>> So, you can do:
>>
>> % echo "print, 'foo' & print, 'bar' " | idl
>>
>> but is there a way to have multiple ".compile" commands on one line?
>>
>> % echo "print, 'compiling foo & .compile 'foo.pro' & print, 'compiling
>> bar & .compile 'bar.pro' " | idl
>>
>
> % echo "print, 'compiling foo & .compile 'foo.pro' & print, 'compiling
> bar' & .compile 'bar.pro' " | sed 's/&/\n/g' | idl
>
>> I need to call .compile multiple times and dont want to have to start
>> IDL every time.
>> Is there a way to do this?
>>
>> Is there a better way to achieve this without starting up idl? i.e.
>> Can you use the compiler without starting up IDL?
>>
>
> the compiler is built into IDL, so the answer is no.
>
> regards
> lajos
>
>
>> thanks and best regards,
>>
>> dometz
>>
>>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reading in a non-rectangular array
Next Topic: Commutativity of multiplication

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

Current Time: Thu Oct 09 21:18:16 PDT 2025

Total time taken to generate the page: 0.95679 seconds