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 <ovidiu.mircescu@edf.fr>
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;