Re: FINDFILE problems IDL 8 LINUX [message #74260] |
Mon, 10 January 2011 09:03  |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
On 10/01/11 16:11, David Fanning wrote:
> wlandsman writes:
>
>> Umm, wasn't FINDFILE supposed to be banished forever many years ago in favor of FILE_SEARCH ?
>>
>> In any case, FINDFILE still works on my Redhat Linux in IDL 8. Does the file
>>
>> /home/david/temp/idl_tmp_9nunrQ that it seems to be choking on actually exist?
>
> Well, it's an old program that is giving me fits today.
> Perhaps it needs refurbishing. :-)
>
> The file doesn't exist. In fact, the directory "temp"
> doesn't exist!
>
Back in the dim recesses of my memory I have a recollection that
findfile locates files by spawning a subprocess which performs an "ls"
which captures the output in a temporary file. The temporary file is
created in a directory defined by some environment variable TMPDIR,
TEMPDIR or the like, defaulting to /tmp. If this directory does not
exist, is not writeable (due to permissions, or quota or disk full etc)
then findfile fails.
--
Nigel Wade
|
|
|
|
|
Re: FINDFILE problems IDL 8 LINUX [message #74409 is a reply to message #74260] |
Mon, 10 January 2011 09:30  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Nigel Wade writes:
> Back in the dim recesses of my memory I have a recollection that
> findfile locates files by spawning a subprocess which performs an "ls"
> which captures the output in a temporary file. The temporary file is
> created in a directory defined by some environment variable TMPDIR,
> TEMPDIR or the like, defaulting to /tmp. If this directory does not
> exist, is not writeable (due to permissions, or quota or disk full etc)
> then findfile fails.
Well, hard to say. But I did go through the Coyote Library
this morning to find and change all references to FindFile
to File_Search. All appears well now.
Thanks for the help.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|