1 diff --git a/src/Launcher/Launcher_Job_SALOME.cxx b/src/Launcher/Launcher_Job_SALOME.cxx
2 index 47ec6f1..e287538 100644
3 --- a/src/Launcher/Launcher_Job_SALOME.cxx
4 +++ b/src/Launcher/Launcher_Job_SALOME.cxx
5 @@ -134,8 +134,8 @@ Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params)
7 // Create file for ns-port-log
9 - // for a salome application file, we write NS_PORT_FILE_PATH in launch_tmp_dir
10 - launch_script_stream << "NS_PORT_FILE_PATH=$(mktemp " << launch_tmp_dir << "nsport_XXXXXX) &&\n";
11 + // for a salome application file, we write NS_PORT_FILE_PATH in working directory
12 + launch_script_stream << "NS_PORT_FILE_PATH=$(mktemp " << work_directory << "/nsport_" << _launch_date << "_XXXXXX) &&\n";
14 launch_script_stream << "NS_PORT_FILE_PATH=$(mktemp " << _resource_definition.AppliPath << "/USERS/nsport_XXXXXX) &&\n";