From 1d41c61ab546c711eeecec62c7de8fd58ae2ef6e Mon Sep 17 00:00:00 2001 From: barate Date: Tue, 18 Oct 2011 15:36:04 +0000 Subject: [PATCH] Fix bugs with Salome launcher jobs --- src/Launcher/Launcher_Job_SALOME.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Launcher/Launcher_Job_SALOME.cxx b/src/Launcher/Launcher_Job_SALOME.cxx index 91d94f1e3..56fc41405 100644 --- a/src/Launcher/Launcher_Job_SALOME.cxx +++ b/src/Launcher/Launcher_Job_SALOME.cxx @@ -114,10 +114,10 @@ Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params) launch_script_stream << _resource_definition.AppliPath << "/runAppli --terminal --ns-port-log=$NS_PORT_FILE_NAME > logs/salome_" << _launch_date << ".log 2>&1 &&" << std::endl; launch_script_stream << "current=0 &&\n" << "stop=20 &&\n" - << "while ! test -f $NS_PORT_FILE_PATH\n" + << "while ! test -s $NS_PORT_FILE_PATH\n" << "do\n" << " sleep 2\n" - << " let current=current+1\n" + << " current=$((current+1))\n" << " if [ \"$current\" -eq \"$stop\" ] ; then\n" << " echo Error Naming Service failed ! >&2\n" << " exit\n" -- 2.39.2