Changeset 128 for trunk/IPs/systemC/processor/Morpheo/Script/distexe.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/distexe.sh
r126 r128 5 5 #----------------------------------------------------------- 6 6 7 VERSION="1.0" 7 declare VERSION="1.0" 8 declare -i SLEEP=3 8 9 9 10 # Need : test, echo, cd, dirname, basename, ssh, ps aux … … 106 107 107 108 header; 108 echo " * {"$(my_date)"} <${HOSTNAME}> file : ${FILE_CMD}"; 109 echo " * {"$(my_date)"} <${HOSTNAME}> path : ${PATH_EXE}"; 109 110 echo " * {"$(my_date)"} <${HOSTNAME}> file : ${FILE_CMD}"; 111 echo " * {"$(my_date)"} <${HOSTNAME}> path : ${PATH_EXE}"; 112 echo " * {"$(my_date)"} <${HOSTNAME}> sleep : ${SLEEP}"; 110 113 111 114 local hosts="${DISTEXE_HOSTS}"; … … 133 136 local -i res=1 134 137 135 while t est ${res} -ne 0; do138 while true; do 136 139 res=$(ps aux | grep -c "${commands[${cpt}]}"); 140 141 if test ${res} -eq 0; then 142 break; 143 fi; 144 145 # wait (to not have 100% cpu) 146 sleep ${SLEEP}; 137 147 done 138 148
Note: See TracChangeset
for help on using the changeset viewer.