###################################################################
file_type=$1
file_type_load=odata_p

min_file=1
max_file=21
#####################################################################

OS_TYPE=`uname -s`
OS_VERSION=`uname -r`
WLIFE="${LIFEHOME}/bin/wild_life.${OS_TYPE}_${OS_VERSION} 0 -memory800000"

file2_cnt=$min_file

until [ $file2_cnt = $max_file ];
do

file2_int=$[ file2_cnt*500  ]
file2=${file_type}$file2_int

echo Generating file -- $file2
echo ""

rm -f OUT/gen.stdout  OUT/gen.stderr
################# runnung wild_life ###########################
   (echo 'load("' $file_type_load '")?' | tr -d ' ' ;echo "" ; \
	echo 'gd(' $file2_int ',"' $file2 '")?' | tr -d ' ' ;echo "" ; \
	echo "halt?") | \
	($WLIFE |  \
egrep -v '(Loading|already loaded|Version|customizing|Copyright|Garbage|Exiting|X interface)' > OUT/gen.stdout \
	)
#        ) | \
#        sed "s/.......s cpu (.*)//" > OUT/gen.stderr
#################################################################

file2_cnt=$[ file2_cnt+1 ]

done


