Skip to main content
mturic
Staff & Editor
Staff & Editor
June 29, 2021

Technical Tip: How to use 'watch'

  • June 29, 2021
  • 1 reply
  • 1616 views
Description
This article describes how to use 'watch' from CLI.

This allows to watch the program output change over time.

Solution
Connect to FortiNAC using a SSH terminal:





Check 'watch' details:




Example.
Run 'watch jps':





Use Ctrl+c to get CLI > again.

By default, the program runs every 2 seconds; use '-n' or '--interva'l to specify a different interval.

In this example time is set to 5 seconds:




1 reply

bmeta
Staff & Editor
Staff & Editor
May 25, 2022

Excellent. Good Job!