From b2c94b0363682f79b827d551a4c3d08a9a73dbb7 Mon Sep 17 00:00:00 2001 From: barate Date: Fri, 13 Apr 2012 15:20:46 +0000 Subject: [PATCH] Errors in directory creation with Vishnu are not fatal --- src/Vishnu/Batch_BatchManager_eVishnu.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Vishnu/Batch_BatchManager_eVishnu.cxx b/src/Vishnu/Batch_BatchManager_eVishnu.cxx index 8809302..0af56e6 100644 --- a/src/Vishnu/Batch_BatchManager_eVishnu.cxx +++ b/src/Vishnu/Batch_BatchManager_eVishnu.cxx @@ -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]; -- 2.39.2