Crates.io | portmonitor |
lib.rs | portmonitor |
version | 0.1.0 |
source | src |
created_at | 2024-04-21 19:22:50.142152 |
updated_at | 2024-04-21 19:22:50.142152 |
description | Simple command to wait for a TCP port to open |
homepage | https://github.com/aminsaedi/portmonitor |
repository | https://github.com/aminsaedi/portmonitor |
max_upload_size | |
id | 1215621 |
size | 38,205 |
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.
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).
PortMonitor <port_number>
PortMonitor 8080 && curl http://localhost:8080
curl https://raw.githubusercontent.com/aminsaedi/portmonitor/master/install.sh | bash
Contributions are always welcome! If you'd like to help improve PortMonitor, please open an issue or submit a pull request.