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

Home » Public Forums » archive » Re: compile and execute from the command line
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: compile and execute from the command line [message #77892] Wed, 28 September 2011 19:08 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Sep 28, 12:43 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Thank you for your reply Michael.
>
> The problem was that the routine is not placed in the current
> directory so if I do idl -e "MY_ROUTINE" IDL won't find the routine
> and won't compile it automatically.
> The solution I found is :
>
> routine_path=ROUTINE_FILEPATH('MY_ROUTINE')
> idl -e "CD, '''+FILE_DIRNAME(routine_path)+''' & MY_ROUTINE"
>
> Cheers,
> nata

Maybe COMPILE_FILE will do the trick?
http://www.physics.wisc.edu/~craigm/idl/misc.html

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: compile and execute from the command line
Next Topic: Is there a work around to save multiple variables with same head but different tails without listing all of them?

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

Current Time: Thu Oct 09 21:43:50 PDT 2025

Total time taken to generate the page: 0.08210 seconds