#command-line #output #watch #run-command #execution #periodically #date

bin+lib ogle

Execute a command periodically, showing the output only when it changes

19 stable releases

2.0.1 Mar 30, 2024
1.4.8 Jan 27, 2024
1.4.7 Dec 13, 2023
1.4.6 Oct 24, 2023
1.2.0 Oct 24, 2020

#925 in Command line utilities

Download history 2/week @ 2024-01-21 184/week @ 2024-02-18 23/week @ 2024-02-25 198/week @ 2024-03-10 8/week @ 2024-03-17 91/week @ 2024-03-24 422/week @ 2024-03-31

719 downloads per month

MIT license

36KB
466 lines

CI coveralls dependency status crates.io packagecloud

ogle

ogle is a program that runs the given command-line periodically, showing the output only when it is different than the last.

The simplest way to show most of the features of ogle is by asking it to run date; sleep in a shell, with a waiting period of 3s:

demo

Lines that were written by ogle all start with =>. On the first execution, ogle shows a spinner while the command is running. On the next executions, ogle shows a progress bar, where the total corresponds to the duration of the previous execution. The sleep time is also shown, as a countdown. If the command returns an error to the shell, the error value is displayed.

Installation

If you're a Rust programmer, ogle can be installed with cargo:

$ cargo install ogle

If you're a Debian user, ogle is available in packagecloud. Follow these instruction to use the package repository.

Dependencies

~9–21MB
~264K SLoC