From accc66c543f1c61a9b9a03054ee623494bb7a3ec Mon Sep 17 00:00:00 2001 From: ribes Date: Tue, 17 Nov 2009 09:58:16 +0000 Subject: [PATCH] - Use port argument of runSession - Clean shutdown --- src/Launcher/Launcher_Job_YACSFile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Launcher/Launcher_Job_YACSFile.cxx b/src/Launcher/Launcher_Job_YACSFile.cxx index ff99d9cde..511e5c306 100644 --- a/src/Launcher/Launcher_Job_YACSFile.cxx +++ b/src/Launcher/Launcher_Job_YACSFile.cxx @@ -135,9 +135,9 @@ Launcher::Job_YACSFile::buildSalomeCouplingScript(Batch::Parametre params) << " exit\n" << " fi\n" << "done\n" - << "port=`cat " << _machine_definition.AppliPath << "/" << launch_date_port_file << "`\n"; - launch_script_stream << _machine_definition.AppliPath << "/runSession driver " << yacs_file_name << ".xml > logs/yacs_" << launch_date << ".log 2>&1" << std::endl; - launch_script_stream << _machine_definition.AppliPath << "/runSession killSalomeWithPort.py $port" << std::endl; + << "appli_port=`cat " << _machine_definition.AppliPath << "/" << launch_date_port_file << "`\n"; + launch_script_stream << _machine_definition.AppliPath << "/runSession -p $appli_port driver " << yacs_file_name << ".xml > logs/yacs_" << launch_date << ".log 2>&1" << std::endl; + launch_script_stream << _machine_definition.AppliPath << "/runSession -p $appli_port shutdownSalome.py" << std::endl; // Return launch_script_stream.flush(); -- 2.39.2