Re: Curious FindFile behavior [message #13776 is a reply to message #13589] |
Thu, 26 November 1998 00:00  |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
Barry Lesht wrote:
:> I'm running IDL5.1 on an SGI (IRIX6.2). I'm using FindFile to create
:> an array of data filenames that I can pass to some processing code.
:> There are (as it turns out) 515 files in the directory I'm searching.
:> The filenames are all of the form xxxxxxxxx.xx.yymmdd.hhmmss.cdf. I
:> get the following from FindFile-
:>
:> IDL> files=FindFile('*.*', COUNT=nf)
:> IDL> PRINT, nf
:> 0
:> IDL> files=FindFile('*.cdf', COUNT=nf)
:> IDL> PRINT, nf
:> 0
:> IDL> files=FindFile('*98*.cdf', COUNT=nf)
:> IDL> PRINT, nf
:> 0
:> IDL> files=FindFile('*980*.cdf', COUNT=nf)
;> IDL> PRINT, nf
:> 425
:> IDL> files=FindFile('*981*.cdf', COUNT=nf)
:> IDL> PRINT, nf
:> 90
:>
:> I don't see why cases 2 and (especially) 3 didn't result in nf=515.
:> Can anyone explain this? Thanks.
:>
:> Barry Lesht
:> bmlesht@anl.gov
We had a problem on our system when the filesystem holding /tmp
was short of room.
I discovered that findfile was creating a temporary file in /tmp
containing the matched filenames. When this list was large and file
filesystem containg /tmp didn't have room to hold it a truncated list
of filenames was returned. There was no error indication.
The number of matched files also varied with how much space was
available in /tmp.
Have a look and see how much space is left in /tmp.
Or was it /var/tmp? Now I'm not sure which it was...
Check both, it was one of the two.
--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
|
|
|