From af7cc87bde9895a059ef37b5c8d66a34d6748e95 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 9 Jun 2005 14:01:46 +0000 Subject: [PATCH] When ssh is used used of scp. --- src/ResourcesManager/SALOME_ResourcesManager.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ResourcesManager/SALOME_ResourcesManager.cxx b/src/ResourcesManager/SALOME_ResourcesManager.cxx index 2a67ffc7b..3d60c6ba2 100644 --- a/src/ResourcesManager/SALOME_ResourcesManager.cxx +++ b/src/ResourcesManager/SALOME_ResourcesManager.cxx @@ -222,7 +222,16 @@ string SALOME_ResourcesManager::BuildTempFileToLaunchRemoteContainer(const strin system(commandRcp.c_str()); } else if(resInfo.Protocol==ssh) - command = "ssh "; + { + command = "ssh "; + string commandScp="scp "; + commandScp+=_TmpFileName; + commandScp+=" "; + commandScp+=machine; + commandScp+=":"; + commandScp+=_TmpFileName; + system(commandScp.c_str()); + } else throw SALOME_Exception("Unknown protocol"); command+=machine; -- 2.39.2