in reply to Re: A file revert back to its original contents
in thread A file revert back to its original contents

Hi Mark,
The code do a mounting before open the file handle and unmount after close it.
However it was not across network, just mount/unmount on local disk partition.
  • Comment on Re: Re: A file revert back to its original contents

Replies are listed 'Best First'.
Re: Re: Re: A file revert back to its original contents
by jasonk (Parson) on Apr 11, 2003 at 13:52 UTC

    This could happen if one of the scripts was mounting the filesystem correctly and the other wasn't, you have one version of the file in the directory the filesystem gets mounted on, and one on the filesystem itself, so if the filesystem is mounted, you get that one, otherwise you get the one that is normally 'underneath' the mounted filesystem. Umount it and look in the place where it was mounted to see if the file the other script is getting is there...


    We're not surrounded, we're in a target-rich environment!