📄 runs2
字号:
#!/bin/cshif ( "$1" == "" ) then echo "" echo "usage: $0 <restlessness>" echo "" exitendifif ( ! -d scenarios || ! -d logs ) then echo "" echo "cant find a necessary directory." echo "" exitendifsetenv REST 1.0echo $RESTshift#echo $1while( "$1" != "") setenv sfile scenarios/i-need-sleep-$1 setenv lfile logs/i-need-sleep-$1 time ../ns scripto.tcl -stop 600 -nn 50 -tr $lfile -sc $sfile if($status != 0) then echo "Error: ns" exit endif time perl totals $lfile 50 > $lfile.totals foreach f ($lfile $lfile.totals) gzip $f if($status != 0) then echo "" echo "Error: gzip $lfile" echo "" exit endif scp $f.gz jorjeta@bush.monarch.cs.cmu.edu:/bigdisk/aodv/logs/ if($status == 0) then rm $f.gz endif end shiftend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -