You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
710 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

wait
===
等待进程执行完后返回
## 说明
**wait命令** 用来等待指令的指令直到其执行完毕后返回终端。该指令常用于shell脚本编程中待指定的指令执行完成后才会继续执行后面的任务。该指令等待作业时在作业标识号前必须添加备份号"%"。
### 语法
```
wait(参数)
```
### 参数
进程或作业标示:指定进程号或者作业号。
### 实例
使用命令wait等待作业号为1的作业完成后再返回输入如下命令
```
wait %1 #等待作业号为3的作业完成
```
执行上面的指令后,将输出指定作业号的指令,如下所示:
```
find / -name password
```