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

Home » Public Forums » archive » Perform 'find' command (LINUX) in IDL environment
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: Perform 'find' command (LINUX) in IDL environment [message #91031 is a reply to message #91030] Wed, 27 May 2015 01:19 Go to previous messageGo to previous message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Mittwoch, 27. Mai 2015 09:55:55 UTC+2 schrieb Helder:
> On Wednesday, May 27, 2015 at 9:34:09 AM UTC+2, Kai Heckel wrote:
>> Hey there!
>> For reasons of processing time I'd like to replace a 'FILE_SEARCH' command with a faster 'find' LINUX command.
>>
>> Here is what I have so far...
>>
>> mydir = 'F:\startdir\anotherdir\maindir\data'
>> cd, mydir
>> spawn, 'pwd'
>> spawn, 'find' -type f -name "*132.txt"
>>
>>
>> The result should be every text file ending with "132.txt".
>> Where am I going wrong here?
>>
>> Thanks,
>> Kai
>
> Hi,
> I have no Linux to test this, but the spawn command expects a string as argument. Therefore I would do something like:
>
> spawn, 'find -type f -name "*132.txt"'
>
> Not tested!
>
> Cheers,
> Helder

Perfect, this works, thanks for that.

How can I store the search results in a variable in order to use them in IDL.

Something like this:

results = spawn, 'find -type f -name "*132.txt"'
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stretch color image with colorbar compatible issue
Next Topic: cgImage conflict with device

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

Current Time: Wed Oct 08 16:02:56 PDT 2025

Total time taken to generate the page: 0.00404 seconds