On Tue, Jan 26, 1999 at 08:35:41PM +0300, Khimenko Victor wrote:
> >> >> makeindex >index.html.$$
> >> >> mv -f index.html index.html.old
> >> >> mv -f index.html.$$ index.html
> >> >> rm -f index.html.old
> >>
> >> OB> А объяснения где? Зачем нужен
> >> OB> mv -f index.html index.html.old
> >> OB> ???
> >>
> >> Именно. AFAIK 1й и 3й строк вполне достаточно...
>
>
> AG> hehe. joke. what if this file is open by httpd right now ?
>
> Hm. And really: "what if this file is open by httpd right now?". How will it
> affect makeindex or mv ??? I'm really puzzled -- it's perfectly legal to
> remove opened file in *nix (it's not braindead Windows but real OS after all!).
> Real removing will be posponed of course but `mv -f` should work just fine !
> Or I'm misunderstood something ?
misunderstood, разумеется. Если у тебя бинарь, обратно на диск частично
высвопленный/выпейдженный, то имеешь шанс нарваться на file is busy.
C файлами, которые подмаплены как read(и|или)write, как в данном
случае, такого быть не может.
--
Alexander Snarskii
the source code is included.
=============================================================================
= Apache-Talk@xxxxxxxxxxxxx mailing list =
Mail "unsubscribe apache-talk" to majordomo@xxxxxxxxxxxxx if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.