winpexect ftp & telnet failures

255 views
Skip to first unread message

brea...@magma.ca

unread,
Feb 15, 2013, 11:34:29 AM2/15/13
to winpe...@googlegroups.com
I got winpexpect working for tclsh.exe, no problem. For ftp.exe, I get the username prompt OK, but the welcome preamble
is missing. I can send the username, but never get password prompt. To clean up, I need to use TaskManager to kill
the lingering ftp.exe process. For telnet.exe the child process seems to die immediately.

During the process of instrumenting the code with trace statements, I discovered one possibly usefull fact.
If you change all instance of SW_HIDE to SW_NORMAL, then the children processes will popup a dumb command
window. Then, when testing with ftp.exe, I found that the missing password prompt shows up in the command
window. It also seems to let me type a password in this window. The stdin/out/err is somehow redirected to the
command window?

Reply all
Reply to author
Forward
0 new messages