#!/bin/ksh
set -x

echo $MPIRANK
echo $NB_CPU_CLIENT
if (( (MPIRANK<NB_CPU_CLIENT) ))
then echo "${MPIRANK}-->CLIENT" ; ${CLIENT_NAME} client 1>${JOB_REQUEST}.out.$MPIRANK 2> ${JOB_REQUEST}.err.$MPIRANK
else echo "${MPIRANK}-->SERVER" ; ${SERVER_NAME} 1>${JOB_REQUEST}.out.$MPIRANK 2> ${JOB_REQUEST}.err.$MPIRANK 
fi
sleep 5
