Re: command line input [message #80916] |
Mon, 23 July 2012 14:42 |
Oana Coman
Messages: 27 Registered: December 2011
|
Junior Member |
|
|
Yay thanks! Exactly what I wanted
On Monday, July 23, 2012 2:19:38 PM UTC-7, Mike Galloy wrote:
> On 7/23/12 2:46 PM, Kat wrote:
> > Hi guys,
> > Is there any way that, once inside of a procedure, to get input from the command line? If there is, what functions are available for doing this?
> > Thanks!
>
> Try the READ routine.
>
> IDL> line = ''
> IDL> read, line
> : Hello
> IDL> help, line
> LINE STRING = 'Hello'
>
> Mike
> --
> Michael Galloy
> www.michaelgalloy.com
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
> Research Mathematician
> Tech-X Corporation
|
|
|
Re: command line input [message #80918 is a reply to message #80916] |
Mon, 23 July 2012 14:19  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 7/23/12 2:46 PM, Kat wrote:
> Hi guys,
> Is there any way that, once inside of a procedure, to get input from the command line? If there is, what functions are available for doing this?
> Thanks!
Try the READ routine.
IDL> line = ''
IDL> read, line
: Hello
IDL> help, line
LINE STRING = 'Hello'
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
|
|
|