exec_scr_tst.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/bin/bash
  2. index_start=$1
  3. num_of_rounds=$2 # Default, if not specified on command-line.
  4. #echo num of apps is $num_of_apps
  5. num_of_apps=$3
  6. res_dir=$4
  7. #echo $num_of_apps
  8. #base_dir=$2
  9. #echo num is $2
  10. for (( i=$index_start; i<=$num_of_rounds; i++ ))
  11. do
  12. ##./clear_app_logs.sh 128 mul_scenaria/8x6_power/app_logs > /dev/null
  13. fname_power=power_$num_of_apps'_'$res_dir'_'$i.txt
  14. #echo "fname_power ="
  15. echo $fname_power
  16. fname_power_output=power_output_$num_of_apps'_'$i.txt
  17. echo $fname_power_output
  18. time_init=$(date +%H-%M-%S-%N)
  19. echo "Init time" $time_init
  20. ##./power_tst.sh $fname_power & #power_64_3.txt &
  21. ##power_pid=$!
  22. ##./brccerun -nue 48 -f rc.hosts_48 my_rtrm_power 8x6_power & #> $fname_power_output & #power_output_64_3 &
  23. ##rcce_pid=$!
  24. ##./watchdog.sh my_rtrm_power & #$rcce_pid &
  25. ##watchdog_pid=$!
  26. echo "watchdog_pid " $watchdog_pid
  27. wait $rcce_pid
  28. ##kill -9 $power_pid
  29. time_fin=$(date +%H-%M-%S-%N)
  30. echo "SCC exec completed successfully!"
  31. ##kill -9 $watchdog_pid
  32. echo "Init time" $time_init
  33. echo "Finish time" $time_fin
  34. ##./get_power_stats.py $fname_power #power_64_3.txt
  35. #./mul_scenaria/8x6_power/cp_scr.sh $num_of_apps $i
  36. ##cd mul_scenaria/8x6_power/
  37. ##./cp_scr.sh $num_of_apps $i $res_dir #power_rtrm/
  38. ##cd ../../
  39. done