Skip to content

aminsaedi/portmonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Using Cargo

cargo install portmonitor

Using install script

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published