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

Home » Public Forums » archive » fstat update
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: fstat update [message #14156 is a reply to message #14089] Tue, 26 January 1999 00:00 Go to previous messageGo to previous message
Vapuser is currently offline  Vapuser
Messages: 63
Registered: November 1998
Member
ashmall@my-dejanews.com (Justin Ashmall) writes:

> Dear All,
> Has anyone had a problem like this?

> We have a widget prog that periodically checks a file for new data,
> it does this by monitoring the file size as returned by fstat. This
> usually works fine but we have found on some (network) drives fstat
> always returns the same value, namely the file size it first saw,
> even though the file is growing. The only fix we've found is to
> constantly close and re-open the file which is a rather inelegant,
> if not inefficient, solution. It doesn't appear to be a buffering
> problem since we can see the file size changing (across the network)
> using the command line or a file manager.

> Any suggestions?
> (We're using IDL 5.1.1 under NT4)
>
> Many thanks,
>
> Justin

I've seen this problem in a UNIX environment when running an IDL
routine on one machine that was querying the size of a file which
resided on a disk that was NFS mounted from another machine. I am
unfamiliar with NT, so I don't know if 'network disk' is a fair
analog of NFS. In this case it was a feature of the operating
system/NFS, the file size didn't change as frequently on the NFS
client, therefore fstat reported EOF correctly as far as it could
see. The work around was to run the program on the machine which
hosted (i.e. for which the disk was local) the disk containing the
file in question.

Hope this helps in some small way.

whd
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using ENVI
Next Topic: ENVI - IDL display question

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

Current Time: Sun Oct 12 11:16:28 PDT 2025

Total time taken to generate the page: 1.12046 seconds