html tool

2017年5月25日星期四

shell脚本中的并发执行

参考:http://blog.csdn.net/wangtaoking1/article/details/9838571
shell脚本中的并发执行
  1. #!/bin/bash  
  2.   
  3. for(( i = 0; i < ${count}; i++ ))  
  4. do  
  5. {  
  6.         commands1  
  7. }&  
  8. done  
  9.   
  10. commands2  

没有评论:

发表评论