[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: wait till end of write, how?

> Given that a W2k client copies a large file into a samba share on a
> Linux server, how can a process (e.g. shell script) that will read this
> file wait until the file is totally transfered?
One alternative is to use a "semaphore" file.  Have the NT app create a file
named, say "busy", just prior to starting the transfer of the big file.
Once the big file is transferred the NT box erases "busy".  The shell script
would be written so that if the "busy" file exists, it doesn't touch the big

Just a thought.


Reply to: