Artifact
0ec536c41a430856a2afe260c812fe07592aacb9:
Ticket change
[0ec536c41a]
- New ticket
[2093902fffffffff|2093902fff] <i>Expect-spawn plink works in 8.4.16 but fails in 8.5.4</i>.
by
nobody on
2008-09-04 22:11:05.
D 2008-09-04T22:11:05
J assignee nobody
J cmimetype text/plain
J comment Distribution:\sActiveState\s8.5.4\nOS:\sWindows\sXP\sProfessional\s2002\sSP2\nExpect\sversion:\s5.43\n\nAttempting\sto\sautomate\sSSH\sseesion\susing\splink.exe\n\nInstalled\sTcl\s8.4.16\sand\sran\sthe\sscript\sbelow.\sEverything\sworked\sas\sexpected\nSaved\scopy\sof\sExpect\sfolder\nUninstalled\sTcl\s8.4.16\nInstalled\sTcl\s8.5.4\nCopied\solder\sExpect\sfolder\sto\sTcl\slib\sfolder\n\nRan\sscript\sand\sgot\sthe\sattached\serror\n\n\nScript:\n\n#!/bin/sh\n#\sThe\snext\sline\sis\sexecuted\sby\s/bin/sh,\sbut\snot\stcl\s\\\nexec\swish\s"$0"\s${1+"$@"}\npackage\srequire\sExpect\nwm\swithdraw\s.\nconsole\sshow\nset\scurrDir\s[pwd]\nset\soutputFile\s"$currDir/SSH_log_Out.txt"\nset\sremoteIP\s"172.20.172.40"\nset\suserID\sadmin\nset\suserPW\sadmin\s\n\s\s\s\sset\stimeout\s20\n\s\s\s\safter\s50\s{set\snewMsg\s1}\n\s\s\s\svwait\snewMsg\n\n\s\s\s\sset\sprompt\s{CPE40:}\n\s\s\s\slog_file\s$outputFile\n\n\s\s\s\s#\sOpen\sa\sSSH\sconnection\n\s\s\s\sspawn\splink\s$remoteIP\n\s\s\s\safter\s2000\n\n\n\s\s\s\sexpect\s{\n\s\s\s\s\s\s\s\s\s-nocase\s-re\s"(login\sas:)"{\sexp_send\s"$userID\\r";}\n\s\s\s\s}\n\s\s\s\safter\s1000\n\s\s\s\s\n\s\s\s\sexpect\s{\n\s\s\s\s\s\s\s\s-nocase\s-re\s"(password:)"\s{\sexp_send\s"$userPW\\r"\s}\n\s\s\s\s}\n\s\s\s\safter\s1000\n\n\s\s\s\sexpect\s{\n\s\s\s\s\s\s\s\s-nocase\s-re\s"($prompt)"\s{\sexp_send\s"interface\sshow\sbridgemgmt\\r"\s}\n\s\s\s\s}\n\s\s\s\safter\s1000\n\n\s\s\s\sexpect\s{\n\s\s\s\s\s\s\s\s-nocase\s-re\s"($prompt)"\s{\sexp_send\s"snmp\sshow\\r"\s}\n\s\s\s\s}\n\s\s\s\safter\s1000\n\n\s\s\s\sexpect\s{\n\s\s\s\s\s\s\s\s-nocase\s-re\s"($prompt)"\s{\sexp_send\s"exit\\r"\s}\n\s\s\s\s}\n\s\s\s\slog_file\n\s\s\s\safter\s5000\n\n\s\s\s\sexit\n
J foundin obsolete:\s8.5.4
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem None
J title Expect-spawn\splink\sworks\sin\s8.4.16\sbut\sfails\sin\s8.5.4
J type Bug
K 2093902fffffffffffffffffffffffffffffffff
U nobody
Z 20567812ed5ea2b7f64a751d944d4612