发布时间: 2013-10-11 14:52:39 作者: rapoo
关于expect shell 与rsh
Quote: 引用:expect中是不一样的,参考例子:主要是set results $expect_out(buffer) # Send the prebuilt command, and then wait for another shell prompt. send "$my_command\r" expect "%" # Capture the results of the command into a variable. This can be displayed, or written to disk. set results $expect_out(buffer)我把rhs那一行改成了 let temp [spawn rsh 192.168.152.$ip -l hadoop hostname],结果效果仍然是temp获得的似乎是spawn的进程号码。有其他的办法吗?这个rsh是怎么回事啊?循环重定向就不管用了?
expect中是不一样的,参考例子:主要是set results $expect_out(buffer) # Send the prebuilt command, and then wait for another shell prompt. send "$my_command\r" expect "%" # Capture the results of the command into a variable. This can be displayed, or written to disk. set results $expect_out(buffer)
# Send the prebuilt command, and then wait for another shell prompt. send "$my_command\r" expect "%" # Capture the results of the command into a variable. This can be displayed, or written to disk. set results $expect_out(buffer)
bad inperpreter解决办法
windowsping通linux,该怎么处理
怎么获取 cpu的占用率 top gt; 1.txt 取
想在linux c下写一个软件管理的软件解
脚本执行完不退出请大牛给见见
软件工程师必知必会-linux常用命令之十
linux停的词典sdcv
克隆linux系统到原来的windows计算机-
小弟我想在svn基础上安装一个review
内网linux主机外网透过ssh能连但x