#!/bin/bash #copy monano functions into the current directory for program execution ./copy_monano.sh source ~/rtems.bash #get script arguments number_thread=$1 filename=$2 #execution of monano per number of threads for ((i=1; i<=$number_thread; i++)) do #configuration of the maximum number of threads per execution ./gen_monano_configure.sh $i echo "----execution of monano with $i thread(s) and extraction of dynamic allocation size -----" if (($i==1)) then ./start.sh 1 |grep sizeof |sed -e 's/sizeof /1,/' >$filename else ./start.sh $i |grep sizeof |sed -e 's/sizeof /'"$i"',/' >>$filename fi done #remove monano functions from the current directory ./remove_monano.sh make clean