Skip to content

Commit 9c4d769

Browse files
authored
Update WatchLog.ps1
1 parent c2d2fef commit 9c4d769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WatchLog.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Get-Content .\Lua.log -Wait | select-string "JSON" | % {[Regex]::Matches($_, '----JSON----(.+)----JSON----').Groups[1]} | Select -ExpandProperty Value | % {Invoke-WebRequest -Uri https://my-endpoint.com -Method POST -Headers @{'Content-Type' = 'application/json'} -UseBasicParsing -Body $_}
1+
Get-Content .\Lua.log -Wait -Tail 1 | select-string "JSON" | % {[Regex]::Matches($_, '----JSON----(.+)----JSON----').Groups[1]} | Select -ExpandProperty Value | % {Invoke-WebRequest -Uri https://my-endpoint.com -Method POST -Headers @{'Content-Type' = 'application/json'} -UseBasicParsing -Body $_}

0 commit comments

Comments
 (0)