Home » U++ Library support » U++ MT-multithreading and servers » Why SshExec close the connexion ?
Re: Why SshExec close the connexion ? [message #53082 is a reply to message #53077] |
Mon, 24 February 2020 10:31   |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
Thanks Oblivion,
I have confused channel and session, I have thought that the session is closed after each SshExec call.
based on your response, i create this helper class :
struct SshExecHelper
{
SshSession& session;
SshExecHelper(SshSession& _session): session(_session){}
int operator()(const String& cmd, String& out, String& err)
{
SshExec e(session);
return e.Execute(cmd, out, err);
}
}
regards
omari.
|
|
|
Goto Forum:
Current Time: Mon Aug 25 18:45:36 CEST 2025
Total time taken to generate the page: 0.08149 seconds
|