logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wait-for-it - script to test and wait on the availability of a TCP host and port

Author

       Giles Hall

1.0                                               29 April 2016                                           man(8)

Description

       wait-forit  is a pure bash script that will wait on the availability of a host and TCP port. It is useful
       for synchronizing the spin-up of interdependent services, such as linked docker containers. Since it is a
       pure bash script, it does not have any external dependencies.

Name

       wait-for-it - script to test and wait on the availability of a TCP host and port

Options

-hHOST,--host=HOST Host or IP under test

       -pPORT,--port=PORT
              TCP port under test

       -s,--strict
              Only execute subcommand if the test succeeds

       -q,--quiet
              Don't output any status messages

       -tTIMEOUT,--timeout=TIMEOUT
              Timeout in seconds, zero for no timeout

       --COMMANDARGS
              Execute command with args after the test finishes

Synopsis

       wait-for-it host:port [-s] [-t timeout] [-- command args]

See Also