Re: passing multiple commands to idl from command line [message #50892] |
Wed, 25 October 2006 12:57  |
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 #50991 is a reply to message #50892] |
Wed, 25 October 2006 13:21  |
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
>>
>>
|
|
|