From 3fc6416e7028cf588a518160a63907e1303d748a Mon Sep 17 00:00:00 2001 From: secher Date: Thu, 10 Dec 2009 14:09:48 +0000 Subject: [PATCH] just a little modification --- src/LSF/Batch_BatchManager_eLSF.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 ; -- 2.39.2