From 79e509ab41d4642a0b2eacefbdca707a203a2ce3 Mon Sep 17 00:00:00 2001 From: ribes Date: Thu, 11 Feb 2010 15:20:39 +0000 Subject: [PATCH] - Force Bash use -> problem with recent Debian Linux --- src/Launcher/Launcher_Job_Command.cxx | 2 +- src/Launcher/Launcher_Job_SALOME.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Launcher/Launcher_Job_Command.cxx b/src/Launcher/Launcher_Job_Command.cxx index deec854b6..759986915 100644 --- a/src/Launcher/Launcher_Job_Command.cxx +++ b/src/Launcher/Launcher_Job_Command.cxx @@ -48,7 +48,7 @@ Launcher::Job_Command::buildCommandScript(Batch::Parametre params, std::string l launch_script_stream.open(launch_script.c_str(), std::ofstream::out); // Script - launch_script_stream << "#! /bin/sh -f" << std::endl; + launch_script_stream << "#! /bin/bash -f" << std::endl; launch_script_stream << "cd " << work_directory << std::endl; launch_script_stream << "export PYTHONPATH=" << work_directory << ":$PYTHONPATH" << std::endl; launch_script_stream << "export PATH=" << work_directory << ":$PATH" << std::endl; diff --git a/src/Launcher/Launcher_Job_SALOME.cxx b/src/Launcher/Launcher_Job_SALOME.cxx index 9a3d8c8ab..33db90ab2 100644 --- a/src/Launcher/Launcher_Job_SALOME.cxx +++ b/src/Launcher/Launcher_Job_SALOME.cxx @@ -59,7 +59,7 @@ Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params) launch_script_stream.open(launch_script.c_str(), std::ofstream::out); // Begin of script - launch_script_stream << "#! /bin/sh -f" << std::endl; + launch_script_stream << "#! /bin/bash -f" << std::endl; launch_script_stream << "cd " << work_directory << std::endl; launch_script_stream << "export PYTHONPATH=" << work_directory << ":$PYTHONPATH" << std::endl; launch_script_stream << "export PATH=" << work_directory << ":$PATH" << std::endl; -- 2.39.2