Xshell Knowledge Base

Sending Strings to Multiple Open Sessions

Last modified: Thursday, February 11, 2016 9:16 PM

Xshell 5 allows users to send characters or strings to multiple open sessions simultaneously using several different methods. Each method has its own advantages and users can choose the method that best fits their requirements.

Compose Bar Method

Sending strings via the Compose Bar is the easiest method to send to multiple sessions. Users can choose to target the current sessions, the current session group., all sessions within the current window, or all Xshell sessions universally.


However, the Compose Bar only supports visible characters.

Quick Command Buttons Method

Unlike, the Compose Bar method, the Quick Commands Buttons method allows users to send non-visible characters. Use the following steps to utilize this method:
  1. Turn on the Quick Commands bar in the View menu.
  2. Double click on the Quick Commands bar to add a new command.



  3. Enter the desired button name in the label field
  4. Select "Send the following text." Enter the desired command to be sent. If you want to send a non-visible character, you can type the ASCII code number using the corresponding octal number. For example \033 for ESC.
Quick Commands can inherently only be sent to the current session, but by sending the Quick Command to the Compose Bar, you can circumvent this and send to multiple sessions. You can also enable the Send Key Input To All Sessions status from the Tools menu to send Quick Commands to all sessions.

Send Key Input To All Session Method

Using this method, users can quickly toggle to send keystrokes to all sessions within a window.


This feature can be toggled ON/OFF from the Tools menu. Once toggled ON, each individual session within the window can be toggled ON/OFF as desired. Using this feature, users can type long strings into several sessions simultaneously and see the results in real time.