X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4be1b32b731cc2a3a6e8bef09d782a19280d6ddf..491af463998597b43a8b9c68c126f97f0089ab5e:/src/smpi/smpirun.in
diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in
index 5b588bf934..570d1ed49c 100755
--- a/src/smpi/smpirun.in
+++ b/src/smpi/smpirun.in
@@ -225,6 +225,20 @@ if [ -z "${HOSTFILE}" ] ; then
HOSTFILETMP=1
HOSTFILE="$(mktemp tmphostXXXXXX)"
perl -ne 'print "$1\n" if /.*.*/' ${PLATFORM} > ${HOSTFILE}
+ perl -ne 'if (/.*> ${HOSTFILE}
fi
UNROLLEDHOSTFILETMP=0
@@ -343,9 +357,9 @@ if [ -n "${HAVE_SEQ}" ]; then
SEQ=`${HAVE_SEQ} 0 $((${NUMPROCS}-1))`
else
cnt=0
- while (( $cnt < ${NUMPROCS} )) ; do
- SEQ="$SEQ $cnt"
- cnt=$((cnt + 1));
+ while [ $cnt -lt ${NUMPROCS} ] ; do
+ SEQ="$SEQ $cnt"
+ cnt=$((cnt + 1));
done
fi