News for hackers. Stuff that matters.

darlingdem

Seriously?

    is_ready() {
        while ! nc -z $1 $2; do
            echo "Waiting for $1:$2..."
            sleep 1
        done
        echo "$1:$2 is accessible."
    }

    is_ready google.com 443 &
    is_ready x.com 443 &
    wait