首页 > Operation System > 怎样同时在n个SecureCRT的session上执行命令

怎样同时在n个SecureCRT的session上执行命令

2008年11月12日 哈哈 发表评论 阅读评论

首先,是要SecureCRT支持“show chat window”

具体是点击SecureCRT菜单“Options”–>”Global Options…”,然后在弹出来的对话框中点击“Terminal”–>”Appearance”,再在右边的“Options”中选择“Show chat window”(如下图所示)

 

 

然后,同时打开需要同时控制的SecureCRTSessions

具体是:“File”–>”Connect in Tab…”,然后再在弹出来的对话框中同时选中需要同时控制的sessions(如下图所示,我的图里是同时选中奥运视频在北京电信的20台机器的Sessions)

 

 

 

然后点击“Connect”按钮,即同时在一个窗口(不同的tab)里打开了所有选中的Sessions(如下图所示),如果未能显示窗口下面的空白部分的话,点击菜单“View”,钩选“Chat Window”

 

 

 

再接着,右键单击SecureCRT窗口下部的窗口,钩选Send Chat to All Tabs这就搞定了。

最后,是应用了。用起来也非常方便,直接在SecureCRT窗口下部的区域里输入命令,回车确认输入,这样输入的每一个命令都会被输入到这个SecureCRT窗口上所有的Sessions。比如用来同时改所有机器的sshd端口呀什么的,很方便。

 

Btw:此招学自一位网上的大大,但文章是原创。:)

原创文章,转载请注明: 转载自嘻嘻哈哈的部落格(blog)

本文链接地址: 怎样同时在n个SecureCRT的session上执行命令

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word