Skip to content

Instantly share code, notes, and snippets.

@goldstar611
Created February 5, 2023 04:11
Show Gist options
  • Save goldstar611/0c51add3ba31b71070824855f034bf35 to your computer and use it in GitHub Desktop.
Save goldstar611/0c51add3ba31b71070824855f034bf35 to your computer and use it in GitHub Desktop.
Check port 443
#!/bin/sh
while ! $(nc -z -v -w1 example.com 443); do sleep 10; done; curl -d "Example.com may be up" https://ntfy.lan/example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment