There was DEFINETLY a race condition, I used a technique similar to this:
http://www.stonehenge.com/merlyn/WebTechniques/col54.html
to solve the problem. There were so many instances where either the live or
the temp file would have been overwritten, it wasn't even, well funny.
for the curious
At 08:42 PM 9/10/2001 -0600, Justin Simoni wrote:
> > Well, what was your $! when the rename failed? If it was "cross-device
> link",
> > then you attempted something that you really can't do.
>
>I don't think it was anything like that, as with many :) real world
>problems, it's a bit more compl
> Well, what was your $! when the rename failed? If it was "cross-device link",
> then you attempted something that you really can't do.
I don't think it was anything like that, as with many :) real world
problems, it's a bit more complicated than that. The file in question on my
failure was an
> "Justin" == Justin Simoni <[EMAIL PROTECTED]> writes:
>> Yes, and surprisingly enough, it's called "rename". :)
Justin> I've had bad luck using rename, I've had to copy the file to
Justin> the new name and deep six the old, check out File::Copy, I
Justin> think it ironically, has a functio
> > Yes, and surprisingly enough, it's called "rename". :)
>
> I've had bad luck using rename, I've had to copy the file to the new name
> and deep six the old, check out File::Copy, I think it ironically, has a
> function called copy(), or even cp(), my memory eludes me.
There's also one called
> Yes, and surprisingly enough, it's called "rename". :)
I've had bad luck using rename, I've had to copy the file to the new name
and deep six the old, check out File::Copy, I think it ironically, has a
function called copy(), or even cp(), my memory eludes me.
--
justin simoni!
> "Scott" == Scott Heckel <[EMAIL PROTECTED]> writes:
Scott> Is there a function that will let you rename a file from say
Scott> file.txt to file.bck? Thanks.
Yes, and surprisingly enough, it's called "rename". :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0