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 #92501 is a reply to message #92497] Fri, 01 January 2016 14:05 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 12:26 AM, Sapna Mishra wrote:
> Hello every one, I am trying to make a shell script in which i want
> my script to call an IDL function which return a value in a variable
> , and i want to use the value of that variable into my rest of the
> script. Is there any way to that? Basically i want to connect my
> shell script and idl function together. Any help??
>

You can use the EXIT routine to return an error code. Or you can pipe
stdout to a variable -- though you are going to have to start IDL with
-quiet, like:

$ var=$(idl -quiet -e "print, 5")
$ echo $var
5

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: Wed Oct 08 16:06:44 PDT 2025

Total time taken to generate the page: 0.00321 seconds