| Crates.io | watchline |
| lib.rs | watchline |
| version | 0.1.0 |
| created_at | 2022-11-09 19:01:20.518482+00 |
| updated_at | 2022-11-09 19:01:20.518482+00 |
| description | runs a command at an fixed interval |
| homepage | |
| repository | https://github.com/eldad/watchline |
| max_upload_size | |
| id | 708944 |
| size | 16,143 |
Watchline runs a command at an interval (similar to watch; without clearing the screen)
To observe the behavior, compare the execution of date --iso-8601=ns | cut -d, -f2 | cut -d+ -f1 with and without precise mode:
# Continuous clock skew
$ watchline 'date --iso-8601=ns | cut -d, -f2 | cut -d+ -f1'
# Maintain the same interval on average
$ watchline -p 'date --iso-8601=ns | cut -d, -f2 | cut -d+ -f1'