X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCore%2FCommunicationProtocolSH.cxx;fp=src%2FCore%2FCommunicationProtocolSH.cxx;h=c8f67401b167263e1b8fe8cf062336983da2826a;hb=4f7c694f721ba36a0db480ffad86877783a27c1b;hp=e59b4a1c701579246d8a8364732ba0cfa80c2742;hpb=7ac6ac615df3d7b90dbf9c8c8fd8e5259a320a69;p=tools%2Flibbatch.git diff --git a/src/Core/CommunicationProtocolSH.cxx b/src/Core/CommunicationProtocolSH.cxx index e59b4a1..c8f6740 100644 --- a/src/Core/CommunicationProtocolSH.cxx +++ b/src/Core/CommunicationProtocolSH.cxx @@ -29,6 +29,7 @@ #include #include "CommunicationProtocolSH.hxx" +#include "CommandsOverloader.hxx" #include "Utils.hxx" using namespace std; @@ -46,7 +47,7 @@ namespace Batch { { vector cmd; - cmd.push_back(Utils::fixPath(SH_COMMAND)); + cmd.push_back(Utils::fixPath(CommandsOverloader::getInstance().SH_Command())); #ifdef WIN32 cmd.push_back("/c"); @@ -67,7 +68,7 @@ namespace Batch { const string & /*destinationUser*/) const { vector cmd; - cmd.push_back(CP_COMMAND); + cmd.push_back(CommandsOverloader::getInstance().CP_Command()); #ifndef WIN32 cmd.push_back("-r"); #endif @@ -78,12 +79,12 @@ namespace Batch { 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 subCommand = MKDIR_COMMAND; + string subCommand = CommandsOverloader::getInstance().MKDIR_Command(); #ifndef WIN32 subCommand += " -p"; #endif