1 Star 0 Fork 5.3K

ztczll / docs

forked from OpenHarmony / docs 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
watch.md 6.14 KB
Copy Edit Raw Blame History
wenjun authored 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

watch

Command Function

This command is used to periodically monitor the execution result of a command.

Syntax

watch

watch [-c/-n/-t/--count/--interval/-no-title/--over] [command]

Parameter Description

Table 1 Parameters

Parameter

Description

Default Value

Value Range

-c / --count

Indicates the number of times that the command is executed.

0xFFFFFF

(0, 0xFFFFFF]

-n / --interval

Indicates the interval for periodically running the command, in seconds.

1s

(0, 0xFFFFFF]

-t / -no-title

Disables time display on the top.

N/A

N/A

command

Indicates the command to be monitored.

N/A

N/A

--over

Stops the current command monitoring.

N/A

N/A

Usage

You can run the watch --over command to stop the currently running command monitoring.

Example

Enter watch -n 2 -c 6 task.

Output

Figure 1 task command monitoring result

NOTE: In this example, the task command has been executed every 2 seconds for six times, and the preceding figure shows the output of the last execution.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ztczll/docs.git
git@gitee.com:ztczll/docs.git
ztczll
docs
docs
master

Search

344bd9b3 5694891 D2dac590 5694891