Salome HOME
Errors in directory creation with Vishnu are not fatal
authorbarate <barate>
Fri, 13 Apr 2012 15:20:46 +0000 (15:20 +0000)
committerbarate <barate>
Fri, 13 Apr 2012 15:20:46 +0000 (15:20 +0000)
src/Vishnu/Batch_BatchManager_eVishnu.cxx

index 8809302da307784eadeb39c3dc515be3c6f78e29..0af56e65811ce0f9c0f19cbd88ebcc39e9b7943d 100644 (file)
@@ -111,10 +111,11 @@ namespace Batch {
   {
     Parametre params = job.getParametre();
     string subCommand = string("export OMNIORB_CONFIG=$VISHNU_CONFIG_FILE; ");
-    subCommand += "vishnu_connect -p 2 && ";
+    subCommand += "vishnu_connect -p 2 || exit; ";
 
     // create remote directories
-    subCommand += "vishnu_create_dir -p " + _hostname + ":" + params[WORKDIR].str() + "/logs && ";
+    // error in this command is not fatal because it fails if the directory already exists
+    subCommand += "vishnu_create_dir -p " + _hostname + ":" + params[WORKDIR].str() + "/logs; ";
 
     // copy executable
     string executeFile = params[EXECUTABLE];