watch command

Introduce yourself to us and other members here, or share your own product reviews, suggestions, and tips and tricks of using QNAP products.
Locked
Neofit
Starting out
Posts: 29
Joined: Tue Aug 28, 2018 7:01 am

watch command

Post by Neofit »

Hi,

TS431P2, Linux 4.2.8.

Is there an equivalent to the Linux "watch" command? The one that replays a command every n seconds? For instance, on a "full" Linux box I'd run:

watch -n 5 cat /proc/mdstat

to launch "cat /proc/mdstat" every 5 seconds, thus emulating a GUI in ssh.

Thanks.
User avatar
OneCD
Guru
Posts: 12160
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: watch command

Post by OneCD »

If you install the Entware QPKG, you'll be able to add commands like 'watch' with:

Code: Select all

opkg install procps-ng-watch

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Locked

Return to “Users' Corner”