Created
July 19, 2021 07:41
-
-
Save peterdalle/551d3b6ab3960f5420475bb3c6685179 to your computer and use it in GitHub Desktop.
Will simulate a scheduled service and run this URL every minute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Url = "https://localhost:44399/cron.ashx?key=xxx" | |
do{ | |
Write-Output "$(Get-Date)" | |
(Invoke-WebRequest $Url).Content | |
Write-Output "" | |
Start-Sleep -Seconds 60 | |
}while(1 -eq 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment