GG
мне казалось, что даже ЛЕ его умеет
Size: a a a
GG
I
microsoft/nanoserver:sac2016
(Docker for windows - Desktop)New-Item -ItemType HardLink -Path "C:/Apache24/logs/output.log" -Target "C:/Apache24/logs/access.log"Что с hardlink или без падает иногда, что файл записи логов блокируется на чтение:
powershell cat C:/Apache24/logs/output.log -Tail 1 -Wait
cat : The process cannot access the file because another process has locked a
portion of the file
At line:1 char:1
+ cat C:/Apache24/logs/output.log -Tail 1 -Wait
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (C:\Apache24\logs\output.log:String)
[Get-Content], IOException
+ FullyQualifiedErrorId : GetContentReaderIOError,Microsoft.PowerShell.Com
mands.GetContentCommand
В какую сторону копать, чтобы при локе он не падал, а дальше смог читать логи?DS
В
GG
GG
GG
GG
В
GG
GG
GG
GG
GG
В
В
GG
В
В