passing multiple commands to idl from command line [message #50895] |
Wed, 25 October 2006 12:13  |
Dominic[1]
Messages: 13 Registered: October 2006
|
Junior Member |
|
|
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 #50977 is a reply to message #50895] |
Wed, 25 October 2006 16:38  |
Dominic[1]
Messages: 13 Registered: October 2006
|
Junior Member |
|
|
Absolutely nothing... cool, thanks! I didnt know that you can cat &
pipe mult. lines into IDL.
This was what I needed! Gracias.
dometz
Sven Geier wrote:
> Dominic wrote:
>
>> So, you can do:
>>
>> % echo "print, 'foo' & print, 'bar' " | idl
>>
>> but is there a way to have multiple ".compile" commands on one line?
>>
>
> So what's wrong with putting all that stuff into a file named "compilestuff"
> and echoing "@compilestuff" into IDL?
>
> - S
>
> --
> http://www.sgeier.net
> My real email address does not contain any "Z"s.
|
|
|
|