当前仅显示指定条件回帖 [ 展开查看全部 ]
文件名称:
watch.md
所在目录:
Openharmony v1.0 / docs / docs-en / kernel
文件大小:
6.14 KB
下载地址:
文本预览:
# 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
## 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.
## 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
## 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.
点赞
回复
X