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.
Post Reply
Neofit
Starting out
Posts: 25
Joined: Tue Aug 28, 2018 7:01 am

watch command

Post by Neofit » Tue May 18, 2021 1:09 pm

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
Ask me anything
Posts: 9066
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: watch command

Post by OneCD » Tue May 18, 2021 1:28 pm

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

Post Reply

Return to “Users' Corner”