Elektrine lite

← Feed

@virtuous_sloth@cosocial.ca

Post #1386407

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 (1)

  • @saxnot@chaos.social 2026-04-19 14:31

    @virtuous_sloth i like how it's one line and uses common tools. that's perfect because I am on a server where usually nothing ever is installed. Also very maintainable

    Open ##1635430