Changeset 128 for trunk/IPs/systemC/processor/Morpheo/Script/execute.sh
- Timestamp:
- Jun 26, 2009, 10:43:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Script/execute.sh
r127 r128 89 89 90 90 local -i NB_DIGIT=0; 91 local -i x=${#COMMAND[*]}; 91 local -i NB_COMMAND=${#COMMAND[*]}; 92 local -i x=${NB_COMMAND}; 92 93 93 94 while test ${x} -ne 0; do … … 113 114 114 115 # test if this number is valid 115 if test ${CPT} -ge ${ #COMMAND[*]}; then116 CPT=${ #COMMAND[*]};116 if test ${CPT} -ge ${NB_COMMAND}; then 117 CPT=${NB_COMMAND}; 117 118 fi; 118 119 … … 129 130 130 131 # test if this number is valid 131 if test ${CPT} -eq ${ #COMMAND[*]}; then132 if test ${CPT} -eq ${NB_COMMAND}; then 132 133 break; 133 134 fi; … … 138 139 139 140 # echo " * {"$(my_date)"} <${ID}> execute command [${NUM}] : ${COMMAND[${CPT}]}"; 140 echo " * {"$(my_date)"} <${ID}> command [${NUM} ] : execute";141 echo " * {"$(my_date)"} <${ID}> command [${NUM}/${NB_COMMAND}] : execute"; 141 142 local PATH_CURRENT=${PWD}; 142 143 … … 154 155 ./${OUTPUT_FILE_CMD} &> ${OUTPUT_FILE_OUT}; 155 156 cd ${PATH_CURRENT} &> /dev/null; 156 echo " * {"$(my_date)"} <${ID}> command [${NUM} ] : done";157 echo " * {"$(my_date)"} <${ID}> command [${NUM}/${NB_COMMAND}] : done"; 157 158 fi; 158 159 done;
Note: See TracChangeset
for help on using the changeset viewer.