runs2

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

TXT
53
字号
#!/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 + =
减小字号Ctrl + -
显示快捷键?