Tcl Expect with Putty -


trying achieve goal of running putty's plink -telnet via tcl expect.

when regular:

plink -telnet 127.1.1.2 

i output of process , able conduct have planned.

but when try same tcl expect:

% package require expect 5.43.2 % exp_internal 1 % spawn plink -telnet 127.1.1.2 -s 16196 % expect -nocase login  expect: "" (spawn_id exp4) match glob pattern "login"? no expect: timed out 

there no response piped process.

tcl: activetcl 8.6(x86) expect: 5.43.2 putty: latest x86 win10 x64

or, if possible, please suggest telnet client works correct tcl's expect(currently using win7 native, want try different, , yes, know "telnet telnet", have crash issues native one).


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -