portmonitor

Crates.ioportmonitor
lib.rsportmonitor
version0.1.0
sourcesrc
created_at2024-04-21 19:22:50.142152
updated_at2024-04-21 19:22:50.142152
descriptionSimple command to wait for a TCP port to open
homepagehttps://github.com/aminsaedi/portmonitor
repositoryhttps://github.com/aminsaedi/portmonitor
max_upload_size
id1215621
size38,205
Amin (aminsaedi)

documentation

README

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

Commit count: 3

cargo fmt