Skip to content

Execute a command periodically. Like watch(1) command.

License

Notifications You must be signed in to change notification settings

amanjeev/watchr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watchr

This is a tool similar to Linux watch(1) which runs your command periodically. The enhancement in this tool over that one is that this one allows you to see the history of the runs if you want to compare your command's current output with an iteration a few seconds ago.

Installation

cargo install watchr

This will deploy a binary named wr in your .cargo directory.

Usage

Incomplete `GNU cat` in Rust for learning purposes

Usage: wr [OPTIONS] <command>

Arguments:
  <command>

Options:
  -c
  -d <duration>      [default: 1]
  -h, --help         Print help
  -V, --version      Print version

Caveats

  • Does not support error propagation if exit code is not 0 of your command
  • Linux only

About

Execute a command periodically. Like watch(1) command.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages