Skip to content
Tcl Source Code History Of Ticket 2093902
Login

History Of Ticket 2093902

Artifacts Associated With Ticket 2093902

  1. Ticket change [0ec536c41a] (rid 94673) by nobody on 2008-09-04 22:11:05:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Distribution: ActiveState 8.5.4
      OS: Windows XP Professional 2002 SP2
      Expect version: 5.43
      
      Attempting to automate SSH seesion using plink.exe
      
      Installed Tcl 8.4.16 and ran the script below. Everything worked as expected
      Saved copy of Expect folder
      Uninstalled Tcl 8.4.16
      Installed Tcl 8.5.4
      Copied older Expect folder to Tcl lib folder
      
      Ran script and got the attached error
      
      
      Script:
      
      #!/bin/sh
      # The next line is executed by /bin/sh, but not tcl \
      exec wish "$0" ${1+"$@"}
      package require Expect
      wm withdraw .
      console show
      set currDir [pwd]
      set outputFile "$currDir/SSH_log_Out.txt"
      set remoteIP "172.20.172.40"
      set userID admin
      set userPW admin 
          set timeout 20
          after 50 {set newMsg 1}
          vwait newMsg
      
          set prompt {CPE40:}
          log_file $outputFile
      
          # Open a SSH connection
          spawn plink $remoteIP
          after 2000
      
      
          expect {
               -nocase -re "(login as:)"{ exp_send "$userID\r";}
          }
          after 1000
          
          expect {
              -nocase -re "(password:)" { exp_send "$userPW\r" }
          }
          after 1000
      
          expect {
              -nocase -re "($prompt)" { exp_send "interface show bridgemgmt\r" }
          }
          after 1000
      
          expect {
              -nocase -re "($prompt)" { exp_send "snmp show\r" }
          }
          after 1000
      
          expect {
              -nocase -re "($prompt)" { exp_send "exit\r" }
          }
          log_file
          after 5000
      
          exit
      
      
    4. foundin initialized to: "obsolete: 8.5.4"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "None"
    11. title initialized to:
      Expect-spawn plink works in 8.4.16 but fails in 8.5.4
      
    12. type initialized to: "Bug"
  2. Ticket change [5b3aa00332] (rid 118284) by nobody on 2008-09-05 05:11:05:

    1. icomment:
      
      
      File Added - 292168: Tcl-Spawn-Error-8.5.4.jpg
      
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  3. Add attachment "Tcl-Spawn-Error-8.5.4.jpg" [17f1f38762] (rid 122585) by [email protected] on 2008-09-05 05:11:05.

  4. Ticket change [23a4cae7fc] (rid 130977) by dgp on 2008-09-30 00:49:51:

    1. assignee changed to: "hobbs"