Created
December 11, 2017 16:01
-
-
Save lanekatris/47aed366d36c84830a1ce5a9f5029bca to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| while ($true) { | |
| $result = curl http://localhost:3000 | |
| if ($result -eq $null) { | |
| write-host "null!" | |
| } | |
| if ($result.StatusCode -eq 200) { | |
| Write-Host "Success" . $result.StatusCode | |
| } else { | |
| Write-Warning "Failed curling, status: " . $result.StatusCode | |
| } | |
| Start-Sleep -Milliseconds 500 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment