Hello all.
I have a server that, on connection with a private key, runs a custom command (ie no shell, nor any pseudo-TTY allocation is required) that expects UTF-8 encoded text, multiple lines until a special end-of-packet line, then outputs UTF-8 encoded text, multiple lines until a special (same, actually) end-of-packet line, then waits for the next input "package".
I have managed to connect to the server (verified by the auth.log file), so assume I have a SshClient object which just ran successfully the Connect method.
How can I proceed to repeat the cycle of (send multiple lines, send special line, read multiple lines until special line is read) ?
Thanks in advance.
I have a server that, on connection with a private key, runs a custom command (ie no shell, nor any pseudo-TTY allocation is required) that expects UTF-8 encoded text, multiple lines until a special end-of-packet line, then outputs UTF-8 encoded text, multiple lines until a special (same, actually) end-of-packet line, then waits for the next input "package".
I have managed to connect to the server (verified by the auth.log file), so assume I have a SshClient object which just ran successfully the Connect method.
How can I proceed to repeat the cycle of (send multiple lines, send special line, read multiple lines until special line is read) ?
Thanks in advance.