Show exp-outer.sh syntax highlighted
#!/bin/sh
#senders="5 35"
senders="5"
#dests="1 2 3 4 5 6 7 8 9 10 12 13 14"
#senderdests="1,3 2,3 3,1 4,1 4,7 4,8 5,2 6,13 6,14 6,13 6,14"
npkts="1000"
pkt_lens="20 80"
lossypres="1"
pots="2"
runs="1 2 3 4 5 6"
harqs="0"
harqlossypres="0,0 0,1 1,1"
rtxs="3"
modes="flooder"
dest="65535"
interval="1000"
configfile="/tmp/run.henri.cfg"
for run in $runs
do
for mode in $modes
do
for pot in $pots
do
for sender in $senders
# for senderdest in $senderdests
do
# sender=`echo $senderdest | cut -f 1 -d ','`
# dest=`echo $senderdest | cut -f 2 -d ','`
#epcho sender $sender, dest $dest
for packets in $npkts
do
# for lossypre in $lossypres
# do
for len in $pkt_lens
do
for rtx in $rtxs
do
for harqlossypre in $harqlossypres
do
harq=`echo $harqlossypre | cut -f 1 -d ','`
lossypre=`echo $harqlossypre | cut -f 2 -d ','`
echo ""; echo ""
echo "** NEW RUN ** "
echo ""; echo ""
rm -f $configfile
echo pot $pot >> $configfile
echo npkts $packets >> $configfile
echo sender $sender >> $configfile
echo lossypre $lossypre >> $configfile
echo interval $interval >> $configfile
echo pktlen $len >> $configfile
echo harq $harq >> $configfile
echo rtx $rtx >> $configfile
echo mode $mode >> $configfile
echo dest $dest >> $configfile
echo run $run >> $configfile
resdir="/tmpscratch/henridf/floodexp-sender5/run$run-pot$pot-len$len-harq$harq"
mkdir -p $resdir
./devel/measurebits/scripts/runexp.pl --basedir $resdir -nodes 37 -cfgfile $configfile
done
done
done
done
done
done
done
done
See more files for this project here
EmStar is a software system for developing and deploying wireless sensor networks involving Linux-based platforms. As the wireless sensor network community has attempted to deploy more complex designs---large-scale, long-lived systems that need self-organization and adaptivity---a number of difficult software design issues have arisen. Advances in software design have not kept pace with the capabilities of hardware. This is because designing for an adaptive, efficient, and useful sensor network has turned out to be surprisingly complex and difficult. EmStar is a Linux-based software framework, whose goal is to dramatically reduce this complexity, enabling work to be shared and reused, and simplifying and speeding the design of new sensor network applications.
Project homepage:
http://cvs.cens.ucla.edu/emstar/
Programming language(s): C,Shell Script
License: other
exp-outer.sh
runexp.pl