run_test
来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· 代码 · 共 36 行
TXT
36 行
# test_run 64 enatm0-kavita.cs.wustl.edu title 10002# repeat 100 new-ttcp -r -s -fm -p 10002 -b 65536#!/bin/csh -fif ($#argv != 4) then echo "Usage: sclt <Max msg size> <destination> <TitleOfThisTest> <port>" $4 exit 1endif#@ msize=1024@ limit= ($argv[1] * 1024)#echo $limit#echo $msize echo "Iteration#" 1 ": new-ttcp -fm -s -t -l" $msize "-h" $2 "-x -L" $3 "-p" $4new-ttcp -fm -s -t -l $msize -h $2 -x -L $3 -p $4sleep 1set flag=0while ($msize <= $limit) if ($flag == 0) goto label echo "Iteration#" 1 ": new-ttcp -fm -s -t -l" $msize "-h" $2 "-x -L" $3 "-p" $4 new-ttcp -fm -s -t -l $msize -h $2 -x -L $3 -p $4 sleep 1 label: set flag=1 foreach i (2 3 4 5) echo "Iteration#" $i ": new-ttcp -fm -s -t -l" $msize "-h" $2 "-L" $3 "-p" $4 new-ttcp -fm -s -t -l $msize -h $2 -L $3 -p $4 sleep 1 end echo "---------------------------" @ msize = ($msize * 2)end echo " "echo "Done at:" date
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?