当前位置:网站首页>Xshell batch send command to multiple sessions
Xshell batch send command to multiple sessions
2022-07-26 08:34:00 【ZenPower】
- Applicable scenario
Recently, there is a need to restart services in batches every week , Because there are more than a dozen server nodes involved , And we should distinguish between the primary node and the child node , You have to submit the restart command one by one every time ( To close the service, you need to execute the child nodes first , Then execute the master node ; Start the service and vice versa ), Cumbersome and time-consuming . So I found out XShell Support [ Quick command ] perform [ To the current session ]、[ Current label group ]、[ All conversations ], Solve this problem efficiently .
- Solution
Found during use XShel5 and XShell6 There are slight differences in the version , We use XShell6 For example , The difference will be explained at the bottom :
1、 First , Need to open XShell Of [ Quick command bar ]: see — Quick command — Quick command bar
2、 stay [ Quick command bar ] Add a quick command button : Click on the bottom left corner — Quick command bar menu — Add a button , Or directly above [ Quick command bar ] Double click above
3、 Edit quick command button : Fill in [ label ] And [ String ], The type of operation is [ Send string ], there [ label ] Command description ,[ String ] It's an order to execute , End of input [ String ] after , In order to click the button later, you can directly send commands and execute , Need to return ( Enter and execute directly )
4、 After adding the quick command button , We copied several sessions for testing : stay [ Quick command ] Button — Right click — perform — All conversations , You will find that all windows have executed this command ; Or perform - Current label group , Will execute the command to the current label group
5、 Here's the picture , The current tag group session has executed this command
6、 Corresponding to the session that needs to execute the command separately , You can drag the session tab to the bottom left , Break away from the current tag group , This can distinguish between session execution commands
7、 After leaving the current tag group , You can send commands separately without affecting each other
- XShell6 and XShell5 The difference between ,XShell5 edition , Need to open “ writing ”—“ Write column ”
Specifically “ Quick command bar ” Button , Need to send to current tag group or current session , Need to be in “ writing ” Column to select
边栏推荐
- 各位老师,请问在flinkcdc中,sqlserver如何获取到ddl?
- 第四天作业
- QT note 1
- [C language] programmer's basic skill method - "creation and destruction of function stack frames"
- Memory management - dynamic partition allocation simulation
- Number of briquettes & Birthday Candles & building blocks
- Kotlin program control
- Inaccurate problem of flutter fijkplayer seekto
- Matplotlib learning notes
- 2022-7-6 personal qualifying 3 competition experience
猜你喜欢
Kotlin operator
Daily Note (11) -- word formula input arbitrary matrix
Lesson 3: gcc compiler
[GUI] swing package (window, pop-up window, label, panel, button, list, text box)
基于C语言的内存管理-动态分区分配方式模拟
Special lecture 2 dynamic planning learning experience (should be updated for a long time)
I am 35 years old.
Spark scheduling analysis
【时间复杂度空间复杂度】
BGP routing principle
随机推荐
2022-024arts: Longest valid bracket
When developing flutter, idea_ ID cannot solve the problem
SPSS uses kmeans, two-stage clustering and RFM model to study the behavior law data of borrowers and lenders in P2P network finance
Alphabetic string
Date and time function of MySQL function summary
Problems caused by slivereappbar
The full name of flitter IDFA is identity for advertisers, that is, advertising identifiers. It is used to mark users. At present, it is most widely used for advertising, personalized recommendation,
基于C语言实现的人机交互软件
请问现在flinkcdc支持sqlserver实例名方式连接吗?
Basic music theory rhythm connection problem, very important
六、品达通用权限系统__pd-tools-log
Memory management - dynamic partition allocation simulation
Flutter custom player progress bar
Status management bloc provider geTx
Nodejs2day (modularization of nodejs, NPM download package, module loading mechanism)
How to safely delete a useless activity in Android studio
Does flinkcdc now support sqlserver instance name connection?
JS工具函数大全
基础乐理 节奏联系题,很重要
Fluent custom popupmenubutton