Download raw body.
watch(1) - periodically execute a command and display its output
watch(1) - periodically execute a command and display its output
watch(1) - periodically execute a command and display its output
watch(1) - periodically execute a command and display its output
watch(1) - periodically execute a command and display its output
On 2025-05-19 20:00 GMT, Job Snijders <job@openbsd.org> wrote: > Dear all, > > I often find myself reaching for a type of utility not in base, > "watch". $ alias watch watch=iwatch ;) > > A makeshift solution is "$ while true; do THING; sleep 1; clear; done", > but I often end up spending too much time tweaking such impromptu > oneliners, essentially cooking up hairy shell scripts with no newlines. > > For years I used 'gnuwatch' from ports, it works okayish, but the name > spells out an issue. Then, this weekend I discovered yazuoka@'s > excellent ports/sysutils/iwatch and decided to prepare it for OpenBSD. > > https://github.com/iij/iwatch v1.0.4 was my starting point. > > compared to iwatch: > - removed colorizing capability / style via environment variable > - changed a number of keyboard commands (added arrows/pgup/pgdown) > - rewrote the man page > - made interactive mode more like top(1)/systat(1) > - added 'pause on error' feature > - added pledge/unveil I would prefer if you imported upstream as is and then apply your changes on top, as individual commits. You should do the rename though, because cvs doesn't track renaming particularly well. I.e. commit iwatch.c as watch.c and iwatch.1 as watch.1. -- In my defence, I have been left unsupervised.
watch(1) - periodically execute a command and display its output
watch(1) - periodically execute a command and display its output
watch(1) - periodically execute a command and display its output
watch(1) - periodically execute a command and display its output
watch(1) - periodically execute a command and display its output