Skip to main content

Sending Strings to Multiple Open Sessions

By Monday February 15th, 2016Features

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.

unnamed
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.
    unnamed (1)
  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.
unnamed (2)
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.

Leave a Reply

two × three =