Skip to content

Instantly share code, notes, and snippets.

@xu3kev
Created June 23, 2012 13:18
Show Gist options
  • Select an option

  • Save xu3kev/2978283 to your computer and use it in GitHub Desktop.

Select an option

Save xu3kev/2978283 to your computer and use it in GitHub Desktop.
ns2
#!/bin/bash
j=20;
for((i=10;i<=90;i+=10,j+=10))
do
./setdest -v 2 -n 50 -s 2 -m $i -M $j -t 100 -P 1 -p 0 -x 250 -y 250 > movement/v2_$i
done
#!/bin/bash
for((i=1;i<=10;i++))
do
echo $i
ns cbrgen.tcl -type cbr -nn 50 -seed $i -mc 50 -rate 50.0 > traffic/traffic2_$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment