Chinaunix首页 | 论坛 | 博客
  • 博客访问: 166989
  • 博文数量: 31
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 425
  • 用 户 组: 普通用户
  • 注册时间: 2014-10-13 17:05
文章分类

全部博文(31)

文章存档

2016年(11)

2015年(20)

我的朋友

分类: LINUX

2015-12-22 15:38:15


使用 kibitz  -tty  pts/1  root 来建立同步。

配置好yum源。查找rpm包

点击(此处)折叠或打开

  1. [root@server1 python]# yum provides */kibitz
  2. Loaded plugins: fastestmirror, security
  3. Loading mirror speeds from cached hostfile
  4.  * base: mirrors.aliyun.com
  5.  * extras: mirrors.aliyun.com
  6.  * updates: mirrors.aliyun.com
  7. expect-5.44.1.15-5.el6_4.x86_64 : A program-script interaction and testing utility
  8. Repo : base
  9. Matched from:
  10. Filename : /usr/bin/kibitz
安装

点击(此处)折叠或打开

  1. [root@server1 python]# yum install expect
  2. Loaded plugins: fastestmirror, security
  3. Loading mirror speeds from cached hostfile
  4.  * base: mirrors.aliyun.com
  5.  * extras: mirrors.aliyun.com
  6.  * updates: mirrors.aliyun.com
  7. Setting up Install Process
  8. Package expect-5.44.1.15-5.el6_4.x86_64 already installed and latest version
  9. Nothing to do
我这里已经安装过了。

w查看需要同步的虚拟终端,这里要同步的虚拟终端为pts/0


由上图可以得知,我们目前的虚拟终端为 pts/1 在 pts/1中执行命令如下:
[root@server1 ~]# kibitz -tty pts/0 root
asking root to type:  kibitz -3073                 # 输入完命令后,这里会有一个等待应答的过程。

查看pts/0 是什么情况


这里就不用解释了吧?直接回车输入:kibitz -3073  再敲回车就连接上了。

[root@server1 python]# kibitz -3073
Escape sequence is ^]


如果多个终端同步,都是按照上面的方法来做就好了。



阅读(1825) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~