Salome HOME
projects
/
tools
/
libbatch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[bos #32518][EDF] (2022-T3)
[tools/libbatch.git]
/
src
/
Core
/
CommunicationProtocolSH.cxx
diff --git
a/src/Core/CommunicationProtocolSH.cxx
b/src/Core/CommunicationProtocolSH.cxx
index e59b4a1c701579246d8a8364732ba0cfa80c2742..c8f67401b167263e1b8fe8cf062336983da2826a 100644
(file)
--- a/
src/Core/CommunicationProtocolSH.cxx
+++ b/
src/Core/CommunicationProtocolSH.cxx
@@
-29,6
+29,7
@@
#include <libbatch_config.h>
#include "CommunicationProtocolSH.hxx"
#include <libbatch_config.h>
#include "CommunicationProtocolSH.hxx"
+#include "CommandsOverloader.hxx"
#include "Utils.hxx"
using namespace std;
#include "Utils.hxx"
using namespace std;
@@
-46,7
+47,7
@@
namespace Batch {
{
vector<string> cmd;
{
vector<string> cmd;
- cmd.push_back(Utils::fixPath(
SH_COMMAND
));
+ cmd.push_back(Utils::fixPath(
CommandsOverloader::getInstance().SH_Command()
));
#ifdef WIN32
cmd.push_back("/c");
#ifdef WIN32
cmd.push_back("/c");
@@
-67,7
+68,7
@@
namespace Batch {
const string & /*destinationUser*/) const
{
vector<string> cmd;
const string & /*destinationUser*/) const
{
vector<string> cmd;
- cmd.push_back(C
P_COMMAND
);
+ cmd.push_back(C
ommandsOverloader::getInstance().CP_Command()
);
#ifndef WIN32
cmd.push_back("-r");
#endif
#ifndef WIN32
cmd.push_back("-r");
#endif
@@
-78,12
+79,12
@@
namespace Batch {
string CommunicationProtocolSH::getRemoveSubCommand(const string & path) const
{
string CommunicationProtocolSH::getRemoveSubCommand(const string & path) const
{
- return string(
RM_COMMAND
) + " " + Utils::fixPath(path);
+ return string(
CommandsOverloader::getInstance().RM_Command()
) + " " + Utils::fixPath(path);
}
string CommunicationProtocolSH::getMakeDirectorySubCommand(const string & path) const
{
}
string CommunicationProtocolSH::getMakeDirectorySubCommand(const string & path) const
{
- string subCommand =
MKDIR_COMMAND
;
+ string subCommand =
CommandsOverloader::getInstance().MKDIR_Command()
;
#ifndef WIN32
subCommand += " -p";
#endif
#ifndef WIN32
subCommand += " -p";
#endif