ChinaUnix.net
相关文章推荐:

tcl expect

系统redhat as 5.0 安装了tcl包后,仍然没有expect

by ora_length - Shell - 2006-11-29 11:10:14 阅读(736) 回复(1)

相关讨论

我刚刚看tcl并学习expect,在网上看了一个小例子: #!/usr/bin/expect spawn ftp 1.1.1.1 expect "xxx" send "xxx" 但是当我执行的时候:tclsh expectexam.tcl 系统总是提示:invalid command name "spawn" while executing "spawn ftp 172.22.2.22" (file "expectexam.tcl" line 2) 如果我把这个教本改成可执行的然后执行./expectexam.tcl 系统会提示: -bash: ./expectexam.tcl: /usr/bin/expect: bad interpreter: No...

by 海天 - Shell - 2006-08-07 21:48:18 阅读(2647) 回复(10)

我用sco的安装盘装好了tcl,现在我想用expect,该怎么装呢? 要从网上下载吗?或者sco光盘里面有吗?谢谢

by keqinzh - 其他UNIX - 2003-09-19 17:42:43 阅读(1026) 回复(6)

有下面的脚本: #!/usr/bin/tclsh package require expect ..... 但是执行的时候总是报错: can't find package expect while executing "package require expect" 请指教,谢谢。。。 我已经安装了expect,而且可以执行expect命令,但是在tcl脚本中就是不能执行这个expect,不知道为什么啊?

by 海天 - 系统管理 - 2006-08-11 14:20:02 阅读(275) 回复(0)

下面这样写好象不行: #!/opt/bsmext/bin/tclsh source ./test.exp puts "for test purpose\n" ##test.exp脚本内容### #!/opt/bsmext/bin/expect spawn ftp 202.38.35.253 log_file test.log log_user 1 expect "*leozhu):" send "bsmbin\n" expect "Password:" send "abcde01\n" expect "ftp>" send "cd leozhu\n" expect "ftp>" send "get init\n" expect "ftp>" send "bye"

by leo314034 - Shell - 2007-10-08 17:18:41 阅读(2298) 回复(4)

windows 下安装tcl ,运行expect的spawn就出错 不过另一台机子是可以运行的,tcl版本都一样,怎么回事?

by caleman - Shell - 2007-09-28 15:40:33 阅读(4957) 回复(9)

我需要使用EXPECT,请问如何安装expect.libgcc.tcl .tk等?我的:em02:是sunos,谢谢

by DT华英雄 - Shell - 2005-12-29 12:35:33 阅读(775) 回复(0)

安装完tclexpect后,运行SHELL脚本,可还是识别不了expect的命令? 我这有个SHELL脚本,里面含有spawn之类的expect命令,所以装了tclexpect,可在用sh运行SHELL脚本时,还是不识别spawn的命令,哪为前辈指点一下,问题出在哪了

by john11 - Shell - 2005-11-25 12:48:47 阅读(2833) 回复(11)

有下面的脚本: #!/usr/bin/tclsh package require expect ..... 但是执行的时候总是报错: can't find package expect while executing "package require expect" 请指教,谢谢。。。

by 海天 - Shell - 2006-08-11 13:25:47 阅读(999) 回复(3)

想在AIX下实现用户口令修改(非交互式),从网上查到expect可满足该要求。但不知道AIX下需要安装哪些包。请在AIX下使用过expect的给予指点!

by luopc - AIX - 2006-03-16 14:47:11 阅读(787) 回复(0)

谁能用tcl写一个最简单的切换用户(需要密码)的示例?不用expect

by xxf2002 - Shell - 2005-02-01 15:11:29 阅读(525) 回复(0)