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

Home » Public Forums » archive » catching command line arguments from the shell
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: catching command line arguments from the shell [message #26931 is a reply to message #26839] Thu, 04 October 2001 09:40 Go to previous message
Phillip David is currently offline  Phillip David
Messages: 36
Registered: April 1999
Member
We do this with the following:

echo "testpro, x=5, y=1" | idl

This makes it like typing this line at the IDL command prompt. In this
case, though, you're really replacing your keyboard standard input with
a pipe as standard input. So if you want to be able to do further
processing from the command prompt, I believe you've lost that ability.
Widgets work fine, though.

Phillip

"KiWing To ����" wrote:
>
> Hi,
> I wonder if it is possible to pass the command line arguments to
> the IDL pro directly from the shell? Say in the csh shell, when I
> type:
> idl testpro x=5 y=1 <return>
> the idl procedure testpro can get the arguments "x=5" and "y=1".
> Thanks.
> Eric To
[Message index]
 
Read Message
Read Message
Previous Topic: Re: TOTAL(): was Declaration of variables in IDL
Next Topic: Re: the precision of PRINT and HELP statements

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

Current Time: Sun Oct 12 10:43:59 PDT 2025

Total time taken to generate the page: 1.91942 seconds