for comm in "swrite" "rwrite" "smmapw" "rmmapw"
do
  for infile in "/tmp/0.1" "/tmp/0.2" "/tmp/0.3" "/tmp/0.4" "/tmp/1" "/tmp/2" "/tmp/3" "/tmp/4" "/tmp/5" "/tmp/6" "/tmp/7" "/tmp/8" "/tmp/9" "/tmp/10"
  do
   echo "$comm" "$infile" "write.res"
   exe "$comm" "$infile" "write.res"
   echo "flushing"
   smmapr /tmp/flush flush.stat
  done
done

cls
