WinSCP Terminal Automation

Advertisement

sheauyun
Joined:
Posts:
12

WinSCP Terminal Automation

Hi there,

It was mentioned that WinSCP does not support commands that require emulation or user input :?: . But, I am wondering if is there anyway for WinSCP to accept user input like "y" and "n" only?

Beside that, I am wondering why some of the output is missing from the terminal output. Everything is there but the line where asking
user input "Is the LCD completely dark? [y/n] " is just vanish from the WInSCP terminal.

[00:00:06] [fp_backlight] .......................... STARTED
Is the LCD completely dark? [y/n]

Thanks for advice.

Reply with quote

Advertisement

sheauyun
Joined:
Posts:
12

Re: WinSCP Terminal Automation

martin wrote:

You can use input redirection.

For the missing line, please post a session log file.

Hi Martin,

I attched the full log. As you can see from the log, the same goes to the log. The line I mentioned is missing too from the log.

[00:00:06] [fp_backlight] .......................... STARTED
Is the LCD completely dark? [y/n]

I try to use winscp.StandardInput.WriteLine("y") without seeing the line appear on the output, but, it looks like it will not work too.

But, I am sure that this line appear when I am using Putty.

Thanks,
SY