Skip to content
/ w8 Public

unix utility for waiting on ports, http status, and more

License

Notifications You must be signed in to change notification settings

jzelinskie/w8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

w8

So, you're writing some bash and you realize that before you can execute the next program, you need to wait until a port or HTTP endpoint becomes available. That's where w8 comes in.

Usage

# Waiting for a healthcheck to be up before using an API
$ w8 --http localhost:8080/v1/_healthz && curl localhost:8080/v1/data

# Wait for Postgres to be running before running a script for CI
$ w8 --tcp localhost:5432 && psql -c 'CREATE EXTENSION IF NOT EXISTS pg_trgm;'

# Mix and match! Is Deluge daemon, web UI, and the BitTorrent port ready?
$ w8 --tcp 192.168.1.100:58846 --http 192.168.1.100:8112 --tcp 192.168.1.100:8998

Installation

$ cargo install w8

About

unix utility for waiting on ports, http status, and more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages