标签:bash
先启动两个command line作实验
bash$ sleep 10001 & [1] 38272 bash$ job1=$! bash$ sleep 10002 & [2] 44316 bash$ job2=$! bash$ wait $job1 $job2
bash$ kill 38272 bash$ kill 44316
Bash shell 简单的并发任务及等待,布布扣,bubuko.com
标签:bash
原文地址:http://blog.csdn.net/wxqee/article/details/38451869