title: Tcl Expect with Putty
body: <p>Trying to achieve a goal of running putty's plink -telnet via Tcl Expect.</p>
  
  <p>When i do a regular:</p>
  
  <pre><code>plink -telnet 127.1.1.2
  </code></pre>
  
  <p>i get an output of the process and am able to properly conduct what i have planned.</p>
  
  <p>But when i try the same from Tcl Expect:</p>
  
  <pre><code>% package require Expect
  5.43.2
  % exp_internal 1
  % spawn plink -telnet 127.1.1.2 -s
  16196
  % expect -nocase login
  
  expect: does "" (spawn_id exp4) match glob pattern "login"? no
  expect: timed out
  </code></pre>
  
  <p>there is simply no response from the piped process.</p>
  
  <p>Tcl: ActiveTcl 8.6(x86)
  Expect: 5.43.2
  Putty: latest x86
  Win10 x64</p>
  
  <p>Or, if possible, could you please suggest another telnet client which works correct with tcl's expect(currently using Win7 native, but want to try something different, and yes, i know that "telnet is just a telnet", but have crash issues with the native one).</p>