8 ms·
Watch is Linux-only.
by teamhappy 9y ago
Watch is Linux-only.
- khedoros1 9y agoI see it in Cygwin, in the procps-ng package, and available on OSX through Brew. Doesn't seem Linux-only.
- teamhappy 9y agoMy bad. I figured it needs /proc since it's part of the procps package.
- pantalaimon 9y agoWhy would it? You can literally write it as a shell script #!/bin/bash N=2 while true; do clear echo Every $N\s: $* $* sleep $N done
- teamhappy 9y agoI though maybe it had some flag that makes it display process information or something. Anything that would justify it being part of procps really.
- orf 9y agoIt's not
- nwellnhof 9y agoMore precisely, it isn't a POSIX utility.