From: Martin Quinson Date: Mon, 2 Apr 2012 03:03:29 +0000 (-1000) Subject: Basic checks on the arguments provoded to smpirun X-Git-Tag: v3_7~129 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/278b810c564b6261bb08b57f4c9ee4a1553d74de?ds=sidebyside Basic checks on the arguments provoded to smpirun --- diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 0ee0445efc..a61487afcb 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -131,14 +131,18 @@ shift ##----------------------------------- -# test if we have something to execute, otherwise show usage and exit -if [ -z ${EXEC} ] -then - echo "Program is missing" +# Basic checks on the provided arguments +if [ -z ${EXEC} ] ; then + echo "You must provide a program to execute." usage exit 1 fi +if [ -z ${HOSTFILE} ] ; then + echo "No hostfile specified." + usage + exit 1 +fi ##-------------------------------- DEFAULT or SPECIFIED PLATFORM --------------------------------------