Does WinSCP .NET assembly support multiline commands?
Example:
set -v; /opt/bin/cmd > /tmp/my.log <<!!
Line1_CommandInput
Line2_CommandInput
quit;
!!
sent as:
"set -v; /opt/bin/cmd > /tmp/my.log <<!!\r\nLine1_CommandInput\r\nLine2_CommandInput\r\nquit;\r\n!!\r\n"
Is there any reason WinSCP would have trouble with this? I'm getting a 60 second wait and then "Terminated by user." SessionRemoteException
Also, is there a limit to the character length that can be sent via session.ExecuteCommand?
Thanks!
set -v; /opt/bin/cmd > /tmp/my.log <<!!
Line1_CommandInput
Line2_CommandInput
quit;
!!
sent as:
"set -v; /opt/bin/cmd > /tmp/my.log <<!!\r\nLine1_CommandInput\r\nLine2_CommandInput\r\nquit;\r\n!!\r\n"
Is there any reason WinSCP would have trouble with this? I'm getting a 60 second wait and then "Terminated by user." SessionRemoteException
Also, is there a limit to the character length that can be sent via session.ExecuteCommand?
Thanks!