Home » U++ Library support » U++ MT-multithreading and servers » Why SshExec close the connexion ?
Why SshExec close the connexion ? [message #53074] |
Thu, 20 February 2020 18:32 |
omari
Messages: 264 Registered: March 2010
|
Experienced Member |
|
|
Hi Oblivion,
i want to automate file deployment using ssh,
SshSession session;
session.Connect(...);
SshExec exec(session);
Scp scp(session);
exec.Execute("mkdir target/");
scp.SaveFile("target/binary", LoadFile(localFile));
exec.Execute("target/binary&");
but, the first use of SshExec close the session .
how can i achieve this, and keep the session open after remote command execution ?
thanks in advance.
regards
omari.
|
|
|
Goto Forum:
Current Time: Fri Mar 29 12:44:41 CET 2024
Total time taken to generate the page: 0.01352 seconds
|