We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2d2fef commit 9c4d769Copy full SHA for 9c4d769
WatchLog.ps1
@@ -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 $_}
+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