Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Doward

Looks like adding a trailing space to the command fixes it...
Doward

STDIN Redirection with ExecuteCommand?

Is there any reason I couldn't use stdin redirection with ExecuteCommand?

ie:

var linuxCommmand = "/opt/ndmcli -x";
var linuxOptions = "sel stat pnum=1 detail=yes;\nquit;";
SSH.ExecuteCommand(String.Format("{0} <<!!\r\n{1}\r\n!!\r\n", linuxCommand, linuxOptions));

Consulting the SessionLog shows the command is correct, with this:

!! ; echo "WinSCP: this is end-of-file:$?"

Thanks!