# This program is free software; you can redistribute it and/or modify it
# under the terms of the license (GNU LGPL) which comes with this package.
# This program is free software; you can redistribute it and/or modify it
# under the terms of the license (GNU LGPL) which comes with this package.
<platform version="4.1">
APPLICATIONHEAD
##---- cache hostnames of hostfile---------------
if [ -n "${HOSTFILE}" ] && [ -f ${HOSTFILE} ]; then
<platform version="4.1">
APPLICATIONHEAD
##---- cache hostnames of hostfile---------------
if [ -n "${HOSTFILE}" ] && [ -f ${HOSTFILE} ]; then
fi
DESCRIPTIONFILE=$(echo $PROC_ARGS|cut -d' ' -f1)
if [ -n "${DESCRIPTIONFILE}" ] && [ -f "${DESCRIPTIONFILE}" ]; then
fi
DESCRIPTIONFILE=$(echo $PROC_ARGS|cut -d' ' -f1)
if [ -n "${DESCRIPTIONFILE}" ] && [ -f "${DESCRIPTIONFILE}" ]; then
IFS_OLD=
# generate three lists, one with instance id, ont with instance size, one with files
instance=$(echo "$line"|cut -d' ' -f1)
IFS_OLD=
# generate three lists, one with instance id, ont with instance size, one with files
instance=$(echo "$line"|cut -d' ' -f1)
- hosttrace=$(cat $(echo "$line"|cut -d' ' -f2)| tr '\n\r' ' ' )
- NUMPROCSMINE=$(cat $(echo "$line"|cut -d' ' -f2) | wc -l)
+ hosttrace=$(tr '\n\r' ' ' < $(echo "$line"|cut -d' ' -f2))
+ NUMPROCSMINE=$(wc -l < $(echo "$line"|cut -d' ' -f2))
for i in $SEQ1
##----------------------------------------------------------
## generate application.xml with hostnames from hostfile:
for i in $SEQ1
##----------------------------------------------------------
## generate application.xml with hostnames from hostfile:
echo " <actor host=\"${host}\" function=\"${instance}\"> <!-- function name used only for logging -->" >> ${APPLICATIONTMP}
echo " <argument value=\"${instance}\"/> <!-- instance -->" >> ${APPLICATIONTMP}
echo " <argument value=\"${i}\"/> <!-- rank -->" >> ${APPLICATIONTMP}
echo " <actor host=\"${host}\" function=\"${instance}\"> <!-- function name used only for logging -->" >> ${APPLICATIONTMP}
echo " <argument value=\"${instance}\"/> <!-- instance -->" >> ${APPLICATIONTMP}
echo " <argument value=\"${i}\"/> <!-- rank -->" >> ${APPLICATIONTMP}
echo " <argument value=\"${sleeptime}\"/> <!-- delay -->" >> ${APPLICATIONTMP}
echo " </actor>" >> ${APPLICATIONTMP}
echo " <argument value=\"${sleeptime}\"/> <!-- delay -->" >> ${APPLICATIONTMP}
echo " </actor>" >> ${APPLICATIONTMP}