发布时间:2014-12-30 16:07:56
主程序#!/bin/bashecho "100" > /tmp/xwhile read idoexport ik=1while [ $k -gt 0 ]doif [ `cat /tmp/x` -gt 0 ]thenk1=`cat /tmp/x`k1=$((k1-1))echo $k1 > /tmp/x./k1.sh &breakelsesleep 1s if [ `cat /tmp/x` -gt 0 ] then k=$((k+1)) fifidonedone < $1子进程#!.........【阅读全文】