diff options
Diffstat (limited to 'extra/push-examples/powershell/index.ps1')
-rw-r--r-- | extra/push-examples/powershell/index.ps1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extra/push-examples/powershell/index.ps1 b/extra/push-examples/powershell/index.ps1 new file mode 100644 index 0000000..2894e8d --- /dev/null +++ b/extra/push-examples/powershell/index.ps1 @@ -0,0 +1,9 @@ +# Filename: index.ps1 +$pushURL = "https://example.com/api/push/key?status=up&msg=OK&ping=" +$interval = 60 + +while ($true) { + $res = Invoke-WebRequest -Uri $pushURL + Write-Host "Pushed!" + Start-Sleep -Seconds $interval +} |