runs3

来自「在Linux下做的QuadTree的程序」· 代码 · 共 52 行

TXT
52
字号
#!/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 PAUSETIME $1 shift#echo $1while( "$1" != "")        setenv lfile logs/2000x400-$PAUSETIME-$1        setenv sfile /usr/ns-base/scenarios/2000x400-$PAUSETIME-$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/run3/                if($status == 0) then                        rm $f.gz                endif        end        shiftend

⌨️ 快捷键说明

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