mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
16 lines
No EOL
311 B
C++
16 lines
No EOL
311 B
C++
#include "SSH.h"
|
|
|
|
namespace Upp {
|
|
|
|
int SshExec::Execute(const String& cmd, String& out, String& err)
|
|
{
|
|
if(RequestExec(cmd)) {
|
|
int size = max(ssh->chunk_size, 1024);
|
|
out = Get(size);
|
|
err = GetStdErr(size);
|
|
if(Shut(IsError() ? GetErrorDesc() : Null))
|
|
return GetExitCode();
|
|
}
|
|
return GetError();
|
|
}
|
|
} |