brea...@magma.ca
unread,Feb 15, 2013, 11:34:29 AM2/15/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?