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

Home » Public Forums » archive » findfile not recognized
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: findfile not recognized [message #44899 is a reply to message #44807] Fri, 22 July 2005 08:21 Go to previous messageGo to previous message
brodzik@nsidc.org is currently offline  brodzik@nsidc.org
Messages: 7
Registered: July 2005
Junior Member
Mark Hadfield wrote:

> Perhaps findfile fails because there are *too many* files in the
> directory. I vaguely recall references to problems such as this on this
> group. I am too lazy to Google the group to confirm this, but you could
> give it a try.

I've had problems like this, when wildcards are being expanded, and end
up overloading (I think) the shell buffer's limit. I've tested for it
by going out to the shell, and doing an ls on the pattern that the
findfile command
was returning 0 files for (wrong answer, of course, I had checked the
filenames very thoroughly ;-)). The ls returns this:

% ls /my/very/long/path/to/lots/of/files/????/*H
/bin/ls: Argument list too long.

btw, it has to do with the filename wildcards ("*H")--not the "/????/",

because
% ls /my/very/long/path/to/lots/of/files/????/

returns the very long list I expected (which are more than twice as
many as the
*H would have limited them to.) Somebody explained the difference to
me once, but I can't remember now. I suspect file_search handles
things differently in the case of shell "Argument list too long"
errors, because it works.

Yet another nudge in favor of changing all that code to file_search...

--Mary Jo Brodzik
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: % Error in ZLIB compression library - data error. Unit: 100, File: /home/mathieu/Projects/FarSight/Documentation/idldoc/idldoc.sav
Next Topic: Overlaying gridded winds on satellite data

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

Current Time: Tue Dec 02 11:32:01 PST 2025

Total time taken to generate the page: 5.36630 seconds