#tcp-port #port #tcp #tcp-socket #command-line-tool #port-wait

app portmonitor

Simple command to wait for a TCP port to open

1 unstable release

Uses old Rust 2015

0.1.0 Apr 21, 2024

#1408 in Command line utilities

MIT license

14KB

PortMonitor: TCP Socket Waiter

What is PortMonitor?

PortMonitor is a simple yet powerful command-line tool written in Rust that waits until a TCP socket becomes open. It's perfect for automating tasks that depend on a specific port being available.

How does it work?

PortMonitor takes a single argument: the TCP port number you want to wait for. Once you run PortMonitor, it will continuously check if the specified port is open. As soon as the port becomes available, PortMonitor will exit with a success status code (0).

Usage

PortMonitor <port_number>

Example

PortMonitor 8080 && curl http://localhost:8080

Installation

curl https://raw.githubusercontent.com/aminsaedi/portmonitor/master/install.sh | bash

Contributing

Contributions are always welcome! If you'd like to help improve PortMonitor, please open an issue or submit a pull request.

License

MIT

No runtime deps