Skip to content

davidhfrankelcodes/rwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rwatch

rwatch is a command-line utility written in Rust that allows you to run a command repeatedly and watch its output. It's a Rust re-implementation of the classic Unix watch command.

Features

  • Run a given command repeatedly
  • Clear screen between command runs
  • Customizable interval for command execution
  • Handle user interruption gracefully
  • Cross-platform

Installation

Building from source

  1. Make sure you have Rust installed. If not, install Rust using rustup:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Clone this repository:

    git clone https://github.com/davidhfrankelcodes/rwatch.git
    cd rwatch
  3. Build and install rwatch:

    cargo build --release
    cargo install --path .
  4. The rwatch command should now be available. Try running rwatch --help for usage information.

Usage

rwatch <command> [interval]

Example

To watch the contents of a directory change, you might use:

rwatch "ls -l" 1

Contributing

Contributions to rwatch are welcome! Please read the contributing guidelines before submitting a pull request.

License

rwatch is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published