]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
When ssh is used used of scp. T2_2_4a3
authorageay <ageay>
Thu, 9 Jun 2005 14:01:46 +0000 (14:01 +0000)
committerageay <ageay>
Thu, 9 Jun 2005 14:01:46 +0000 (14:01 +0000)
src/ResourcesManager/SALOME_ResourcesManager.cxx

index 2a67ffc7b10fd5ffc88560a612f68489126831e6..3d60c6ba203fdee345f30c9c008b6ef53d1160ef 100644 (file)
@@ -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;