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

Home » Public Forums » archive » IDL help?
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: IDL help? [message #92505 is a reply to message #92502] Sat, 02 January 2016 07:48 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 1/1/16 9:48 PM, Sapna Mishra wrote:
> Ok if i have a function say fun.pro and i want its value to be store
> in var and send it to shell script how it would be look like????
> Thanks for your previous help.....
>

If fun.pro contains a function called FUN, you could do something like:

$ var=$(idl -quiet -e "result = fun() & print, result")

Or you could just have FUN print its output instead of returning a
value. In any case, if you are doing this, make sure to remove other
PRINT statements from your code.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DLM for video capture
Next Topic: FL ARMed!

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

Current Time: Thu Oct 09 23:17:11 PDT 2025

Total time taken to generate the page: 0.63979 seconds