Home » U++ Library support » U++ Library : Other (not classified elsewhere) » SSH Exec output truncated (SSH Exec output truncated)
SSH Exec output truncated [message #54445] |
Tue, 21 July 2020 13:30 |
jstip
Messages: 4 Registered: July 2020
|
Junior Member |
|
|
I am using SshSession CreateExec to run a command on a remote machine, and capture the output.
I noticed that long outputs are truncated. If I increase CHUNKSIZE in Core/SSH/Core.h, I can get the full output.
Is this the way to do this, or is there another way to get the full output?
|
|
|
Re: SSH Exec output truncated [message #54447 is a reply to message #54445] |
Tue, 21 July 2020 20:41 |
Oblivion
Messages: 1143 Registered: August 2007
|
Senior Contributor |
|
|
Hello jstip,
And welcome to U++ forums.
I noticed that long outputs are truncated. If I increase CHUNKSIZE in Core/SSH/Core.h, I can get the full output.
It should be fixed now.
Hopefully the fix will be available in the nightly builds, shortly after the midnight (The change is already reflected in the U++ git mirror though.)
Please check.
Long story short: Your observation is correct. It was "stubbed" that way for the time being (Its base class, SshChannel, is going to be refactored. But I am waiting the next stable point release of libssh2 1.9, where I will upgrade the library too.)
Now it is fixed. Just pass the string and don't worry about the chunk size.
P.s: There is already a ChunkSize method for every class derived from SshChannel, including SshExec. You don't need to modify the code if you want to adjust the chunksize.
If you encounter any errors or have questions let me know.
Best regards,
Oblivion.
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Tue, 21 July 2020 21:31] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Dec 13 22:49:39 CET 2024
Total time taken to generate the page: 0.03310 seconds
|