From 4ad209d86f09393bc0ed3cebde52732ba9b8e281 Mon Sep 17 00:00:00 2001 From: Nicolas Geimer Date: Tue, 3 Jan 2017 10:13:45 +0100 Subject: [PATCH] Allow 'module' macro of EDF clusters The 'module' macro is used to load libraries and compiler environments for EDF clusters. This macro is defined in profile so we need a complete login shell (bash -l) instead of a minimal shell (sh -f). Signed-off-by: Ovidiu Mircescu --- src/Slurm/BatchManager_Slurm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Slurm/BatchManager_Slurm.cxx b/src/Slurm/BatchManager_Slurm.cxx index 8199cb5..b768386 100644 --- a/src/Slurm/BatchManager_Slurm.cxx +++ b/src/Slurm/BatchManager_Slurm.cxx @@ -124,7 +124,7 @@ namespace Batch { ofstream tempOutputFile; string tmpFileName = Utils::createAndOpenTemporaryFile("slurm-script", tempOutputFile); - tempOutputFile << "#!/bin/sh -f" << endl; + tempOutputFile << "#!/bin/bash -l" << endl; tempOutputFile << "#SBATCH --output=" << workDir << "/logs/output.log." << rootNameToExecute << endl; tempOutputFile << "#SBATCH --error=" << workDir << "/logs/error.log." << rootNameToExecute << endl; -- 2.39.2