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

Home » Public Forums » archive » 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
passing multiple commands to idl from command line [message #50895] Wed, 25 October 2006 12:13 Go to next message
Dominic[1] is currently offline  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 Go to previous message
Dominic[1] is currently offline  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.
Re: passing multiple commands to idl from command line [message #50979 is a reply to message #50895] Wed, 25 October 2006 15:47 Go to previous message
Sven Geier is currently offline  Sven Geier
Messages: 17
Registered: July 2002
Junior Member
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Redirecting stderr?
Next Topic: !P.SYMSIZE still broken? after 5 years?

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

Current Time: Wed Oct 08 15:18:00 PDT 2025

Total time taken to generate the page: 0.00584 seconds