std::cerr << "BatchManager_eSSH::submitJob exportInputFiles" << std::endl;
Parametre param = job.getParametre();
- // Creates job repertories
- if (string(param[TMPDIR]) != "")
- {
- string subCommand = string("mkdir -p ") + string(param[TMPDIR]);
- string command = BatchManager_eClient::_protocol.getExecCommand(subCommand, _hostname, _username);
- cerr << command.c_str() << endl;
- int status = system(command.c_str());
- if(status) {
- std::ostringstream oss;
- oss << status;
- std::string ex_mess("Error of connection on remote host ! status = ");
- ex_mess += oss.str();
- throw EmulationException(ex_mess.c_str());
- }
- }
- if (string(param[TMPDIR]) != "")
- {
- string subCommand = string("mkdir -p ") + string(param[WORKDIR]);
- string command = BatchManager_eClient::_protocol.getExecCommand(subCommand, _hostname, _username);
- cerr << command.c_str() << endl;
- int status = system(command.c_str());
- if(status) {
- std::ostringstream oss;
- oss << status;
- std::string ex_mess("Error of connection on remote host ! status = ");
- ex_mess += oss.str();
- throw EmulationException(ex_mess.c_str());
- }
- }
+ // Input files copy
+ exportInputFiles(job);
+ // Launch job
Parametre new_param(param);
+ new_param[INFILE].eraseAll(); // Patch until Local Manager is patched
new_param[OUTFILE].eraseAll(); // Patch until Local Manager is patched
Job * j = new Job(new_param);
std::cerr << "BatchManager_eSSH::submitJob Local submitJob" << std::endl;