Hi friends
Can anybody help me by modifying the following script to print out the
throughput for each second. then push the simulation to stop at 50 sec instead
of stop at max number of nodes.
thanks,
##################################################
#!/bin/csh -f
set max_nodes = 50
set increment = 2
set nodes = 2
set name_file = results
set gfile = $name_file.throughput
rm -f $gfile
touch $gfile
echo "#nodes throughput (kb/s) " >> $gfile
while ( $nodes <= $max_nodes )
ns main.tcl $nodes
set throughput = `wlan-throughput 0.5`
echo "$nodes $throughput " >> $gfile
@ nodes = $nodes + $increment
end
compute-diff-throughput $name_file.throughput basic.throughput
##################################################