TIP: Click on subject to list as thread! ANSI
echo: alt_dos
to: All
from: shadow{at}shadowgard.com
date: 2004-07-14 17:02:04
subject: Re: COPY/MOVE From Mapped Drive

From: shadow{at}shadowgard.com

On 14 Jul 2004 at 15:55, Arkady V.Belousov wrote:

> Hi!
> 
> 13-éÀÌ-2004 23:31 _shadow{at}shadowgard.com (shadow{at}shadowgard.com) wrote
> to opendos{at}delorie.com:
> 
> sc> Well, the thing is, copying a file that may change (or need to be
> sc> changed) while you are copying it is generally a bad idea.
> 
>      Wrong. What bad in copying log-file, which permanently increased?

The fact that *unless* you've got SHARE loaded (or something with 
equivalent access controls) copying the file makes it *unavailable* 
to any other procress. 

So your log file couldn't get updated until the copy was finished. 

I ran into this with a logging utility I wrote once. Some idiot had 
oipen the log file in his editor to see what it was. And all the 
computers calling the logging utility were "hung" until I tracked him 
down and got him to close the file.

After that, I had to re-write the utility to "give up" if the log 
file was unavailable for more than some number of seconds. And I 
moved the file to "hidden" directory on the srver.

Remember, without without SHARE functions, you can only open a file 
for *exclusive* access. Most networking software will allow multiple 
processes/usrers to access a file simultaneously *if* the file is 
read only.


--
Leonard Erickson (aka shadow)
shadow at shadowgard dot com





--- Internet Rex 2.29
* Origin: Shadowgard (1:2320/105.999)
SEEN-BY: 633/267 270
@PATH: 2320/105 261/38 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.