|
#!/usr/bin/expect
spawn ssh -l usrname ip
expect "assword"
send "password/r "
interact
以前可以登陆的,但是重装了redhat9,后,执行,会有一下错误提示:
Tcl_Init failed: Can't find a usable init.tcl in the following directories:
/usr/share/tcl8.3 /韬??????????缈ユ??.3 /??????缈ユ??.3 /韬?????????????y /?????????y /缈ユ??.????????????y /韬????绠??????电骏???.3??毛每驴??
This probably means that Tcl wasn't installed properly.
但是我查了,结果如下:
[root@zhouxf zhou]# whereis tcl
tcl: /usr/share/tcl8.3
[root@zhouxf zhou]# rpm -q tcl
tcl-8.3.5-93
真不知道如何解决,怎么装了系统就不能登陆了,奇怪,这都是自带安装的,我又装了其他版本的tcl
还是不行,我想并不是tcl的问题,请 各位兄台帮忙解决,谢谢! |
|