From: secher Date: Thu, 10 Dec 2009 14:09:48 +0000 (+0000) Subject: just a little modification X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_AR;p=tools%2Flibbatch.git just a little modification --- diff --git a/src/LSF/Batch_BatchManager_eLSF.cxx b/src/LSF/Batch_BatchManager_eLSF.cxx index 44a7976..2f34d04 100644 --- a/src/LSF/Batch_BatchManager_eLSF.cxx +++ b/src/LSF/Batch_BatchManager_eLSF.cxx @@ -261,8 +261,13 @@ namespace Batch { string baseDir; if( pos != string::npos ) baseDir = getHomeDir(workDir) + workDir.substr(pos+5,workDir.length()-5); - else - baseDir = workDir; + else{ + pos = workDir.find("~"); + if( pos != string::npos ) + baseDir = getHomeDir(workDir) + workDir.substr(pos+1,workDir.length()-1); + else + baseDir = workDir; + } tempOutputFile << "#BSUB -o " << baseDir << "/logs/output.log." << rootNameToExecute << endl ; tempOutputFile << "#BSUB -e " << baseDir << "/logs/error.log." << rootNameToExecute << endl ;