Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Basic checks on the arguments provoded to smpirun
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 2 Apr 2012 03:03:29 +0000 (17:03 -1000)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 2 Apr 2012 03:03:29 +0000 (17:03 -1000)
src/smpi/smpirun.in

index 0ee0445..a61487a 100755 (executable)
@@ -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 --------------------------------------