startall.sh 225 B

123456789
  1. cpunum=`cat /proc/cpuinfo | grep processor | wc -l`
  2. startport=3006
  3. for((i=0;i<$cpunum;i++));
  4. do
  5. echo "start" $(expr $[i*10] + $startport);
  6. sh start.sh $(expr $[i*10] + $startport);
  7. done
  8. sh start.cron.sh $startport;