wait4x-tcp
Wait for TCP port(s) to become available. tldr-pages
On several platforms
Several platforms
Wait for a TCP port to become available
wait4x tcp localhost:8080IdentifyWait for a port with a specific timeout
wait4x tcp localhost:3306 --timeout 60sIdentifyWait for a port to become free (inverted check)
wait4x tcp localhost:8080 --invert-checkIdentifyWait for multiple ports in parallel
wait4x tcp localhost:3306 localhost:6379 ...IdentifyRun a command after the port becomes available
wait4x tcp localhost:3306 -- path/to/script.shIdentifyWait with exponential backoff
wait4x tcp localhost:8080 --backoff-policy exponential --backoff-exponential-max-interval 30sIdentify