stopall.sh 223 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 stop.sh $(expr $[i*10] + $startport);
  7. done
  8. sh stop.cron.sh $startport;