_env_file = "";
_job_file = "";
_job_file_name = "";
+ _job_file_name_complete = "";
_work_directory = "";
_local_directory = "";
_result_directory = "";
_job_file = job_file;
std::string::size_type p1 = _job_file.find_last_of("/");
std::string::size_type p2 = _job_file.find_last_of(".");
+ _job_file_name_complete = _job_file.substr(p1+1);
_job_file_name = _job_file.substr(p1+1,p2-p1-1);
+
if (_job_file != "")
add_in_file(_job_file);
}
std::string _job_file;
std::string _job_file_name;
+ std::string _job_file_name_complete;
+
std::string _work_directory;
std::string _local_directory;
std::string _result_directory;
// File name
std::string::size_type p1 = _job_file.find_last_of("/");
- std::string command_file_name = _job_file.substr(p1+1);
std::string launch_date_port_file = launch_date;
std::string launch_script = "/tmp/runCommand_" + _job_file_name + "_" + launch_date + ".sh";
std::string::size_type last = _env_file.find_last_of("/");
launch_script_stream << "source ./" << _env_file.substr(last+1) << std::endl;
}
- launch_script_stream << "./" << command_file_name << " > " << work_directory <<"/logs/command_" << launch_date << ".log 2>&1" << std::endl;
+ launch_script_stream << "./" << _job_file_name_complete << " > " << work_directory <<"/logs/command_" << launch_date << ".log 2>&1" << std::endl;
// Return
launch_script_stream.flush();
void
Launcher::Job_PythonSALOME::addJobTypeSpecificScript(std::ofstream & launch_script_stream)
{
- launch_script_stream << _machine_definition.AppliPath << "/runSession -p $appli_port python " << _job_file_name << ".py > logs/python_" << _launch_date << ".log 2>&1" << std::endl;
+ launch_script_stream << _machine_definition.AppliPath << "/runSession -p $appli_port python " << _job_file_name_complete << " > logs/python_" << _launch_date << ".log 2>&1" << std::endl;
}
#endif
void
Launcher::Job_YACSFile::addJobTypeSpecificScript(std::ofstream & launch_script_stream)
{
- launch_script_stream << _machine_definition.AppliPath << "/runSession -p $appli_port driver " << _job_file_name << ".xml > logs/yacs_" << _launch_date << ".log 2>&1" << std::endl;
+ launch_script_stream << _machine_definition.AppliPath << "/runSession -p $appli_port driver " << _job_file_name_complete << " > logs/yacs_" << _launch_date << ".log 2>&1" << std::endl;
}