2026-04-19 13:09 UTC
@saxnot@chaos.social
A simple shell command line?
while ! curl "$url" | grep -q " $code "; do echo not yet; sleep 1; done; echo yep, now
You'll have to adjust. For example, that regex might not be correct and you might need to add a 2>&1 to the curl to get the response code from stderr to stdout. Also, might want to add option to curl to only request headers.
Replies (0)
No replies.