From: barate Date: Fri, 13 Apr 2012 15:20:46 +0000 (+0000) Subject: Errors in directory creation with Vishnu are not fatal X-Git-Tag: V1_5_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b2c94b0363682f79b827d551a4c3d08a9a73dbb7;p=tools%2Flibbatch.git Errors in directory creation with Vishnu are not fatal --- 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];