|
From: Roland G. <RGi...@a1...> - 2001-12-07 09:13:00
|
> In a cywin window or even in a DOS box, I execute the following , > but the > spawn command seems to fork off a new session which I cannot see. Yes, that's intended behaviour. You can control that session by sending to it and expecting on its output. > How can I get it to work so that the telnet session is active in > the current window ? Use interact(). This connects the process with the scripts stdin/out (your terminal). BTW, storing passwords in cleartext has security implications and should be avoided wherever possible. Maybe you could use ssh instead? Hope this helps, Roland -- RGi...@cp... |