File: run

package info (click to toggle)
ns2 2.35%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 78,864 kB
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 818; awk: 525; csh: 355
file content (24 lines) | stat: -rwxr-xr-x 431 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# used for energy study with enough energy
# one mobility mode, random change distribution of traffic source

for proto in AODV DSR TORA DSDV
do

  echo "$proto simulation"

  i=1

  while [ "$i" -le 1 ] 
  do 
    echo "# $i run ..."

    ../../../ns estudy.tcl -rp $proto -initialenergy 0.5 -tr e-$proto.tr -cp cbr.tcl -sc mobility.tcl -nam $proto.nam -x 670 -y 670 -nn 5 -stop 500

    i=`expr $i + 1`

  done

done