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

Home » Public Forums » archive » Re: spawn and 'ls *.out'
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: spawn and 'ls *.out' [message #50282 is a reply to message #50276] Tue, 19 September 2006 14:59 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Tue, 19 Sep 2006, queiny98@yahoo.com wrote:

> Dear IDL experts,
>
> Can I use '*' and '?' in the UNIX commands through 'spawn'?
>
> When I try:
>
>> spawn, ['ls', 'data/2003????'], /noshell
> Cannot access data/2003????: No such file or directory
>
> I have files like '20030101', '20030102', etc. in this directory.
> It seems 'spawn' interpolate '?' directly or literally. How could I let
> IDL know?
>
> Thanks.
>

* and ? are evaluated by the shell. ls (and any other program) gets real
filenames. Omit the /noshell keyword.

regards,
lajos
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Redraw an image in IDL object
Next Topic: Maddening structures

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

Current Time: Sun Oct 12 12:24:09 PDT 2025

Total time taken to generate the page: 0.96089 seconds