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 
Switch to threaded view of this topic Create a new topic Submit Reply
catching command line arguments from the shell [message #26839] Mon, 01 October 2001 00:01 Go to next message
 is currently offline 
Messages: 1
Registered: October 2001
Junior Member
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
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
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 17:23:45 PDT 2025

Total time taken to generate the page: 0.00523 seconds