totals.csh

来自「ns2.1b5版本中cbrp碼」· CSH 代码 · 共 101 行

CSH
101
字号
#!/bin/cshunset noclobbersource $ROOT/run-setupsetenv TMPDIR	.setenv TMPFILE	xxxforeach i ($PT)		        # Pause Timesforeach k ($NUM_SRCS)		# Number of Sourcesforeach j ($RUNS)		# Scenario File Numbersetenv t1 ${XSIZE}x${YSIZE}-${NODES}-$i-${SPEED}-$jsetenv t2 cbr-${NODES}-$k-${RATE}-${PKTSIZE}setenv out	out-${t1}-${t2}setenv totals	totals-${t1}-${t2}setenv fwdr	fwdr-${t1}-${t2}setenv disc	disc-${t1}-${t2}setenv cache	cache-${t1}-${t2}setenv cache_summary cache_summary-${t1}-${t2}    if($SKIP && -f $totals.rtr && -f $totals.agt) then	echo "skiping $out --- totals files exist"	continue    endif       if($NS_REMOTE_LOGS == "yes") then	        echo "fetching ${USER}@${DEST_HOST}:${DEST_DIR}/${out}.gz"                rcp  ${USER}@${DEST_HOST}:${DEST_DIR}/${out}.gz .                if($status != 0) then		       echo "Couldn't fetch $out"		       continue                endif        endifif( ! -f $OUTDIR/$out.gz) then        echo skipping $out        continueelse	echo unzipping $outendifgunzip -c $OUTDIR/$out.gz > $TMPDIR/$TMPFILEif ($status != 0) then        echo ""        echo "ERROR in gunzip..."        echo ""endif#echo processing $out.mac#totals.pl $TMPDIR/$TMPFILE MAC $NODES > $TOTDIR/$totals.macecho creating $totals.rtrtotals.pl $TMPDIR/$TMPFILE RTR $NODES > $TOTDIR/$totals.rtrecho creating $totals.agttotals.pl $TMPDIR/$TMPFILE AGT $NODES > $TOTDIR/$totals.agt#######################################################################echo creating $fwdr#sample-fw-dr.pl $TMPDIR/$TMPFILE $NODES 1 > $TOTDIR/$fwdr######################################################################if (x$NS_PROTO == "xDSR") then	echo creating $disc	discovery.pl $TMPDIR/$TMPFILE $NODES  > $TOTDIR/$disc	gzip $GZIP_OPTS $TOTDIR/$disc	######################################################################	echo creating $cache	cache.pl $TMPDIR/$TMPFILE $NODES > $TOTDIR/$cache	#	# Take care of the "summary" file that is created automagically	# by cache.pl	#	mv -f ./__tmpfile $TOTDIR/$cache_summary	gzip $GZIP_OPTS $TOTDIR/$cache	gzip $GZIP_OPTS $TOTDIR/$cache_summary	######################################################################endifrm -f $TMPDIR/$TMPFILE       if($NS_REMOTE_LOGS == "yes") then                 echo "removing RDEST'd file $out.gz"	         rm $out.gz        endifendendend

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?