ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА














     АРХИВ :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)

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

Re: [apache-talk] Как скопировать файл?



In <199901261545.SAA08168@netclub.ru> Andrey Gerasimov (andy@netclub.ru) wrote:
AG> 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 ?

P.S. BTW why are we switched to English ?



=============================================================================
=               Apache-Talk@lists.lexa.ru mailing list                      =
Mail "unsubscribe apache-talk" to majordomo@lists.lexa.ru if you want to quit.
=       Archive avaliable at http://www.lexa.ru/apache-talk                 =



 




Copyright © Lexa Software, 1996-2009.