Note: This tip is for use with SecureCRT for Windows®.
SecureCRT 5.2 and later supports scripting functions to control multiple tabbed sessions from a script. Tabs functions allow scripts to connect Secure Shell command and SFTP tabs, clone tabs, activate tabs, and close tabs. Examples of common application are opening multiple tabbed sessions in a specific order, and prompting for a command and sending it to multiple tabbed sessions.
Below are sample scripts written in VBScript demonstrating each of the tab functions.
|ActivateTab.vbs||Opens a specified session as a tab and brings it to the foreground|
|CloneTab.vbs||Takes a session window and creates a duplicate (clone) window|
|CloseTab.vbs||Opens a specified session as a tab and then disconnects the session|
|ConnectSFTPTab.vbs||Connects to a defined session and then opens an SFTP tab window for that session|
|DisconnectTab.vbs||Opens a session in a tab and then disconnects it|
|SendToAll.vbs||Takes a command and sends it to all open tabs|
The above scripts use the following tab-specific script functions:
You can find more information about the Tab object in the SecureCRT Help files under Scripting / Script Objects Reference / Tab Object.
To learn more about scripting for SecureCRT, visit our Scripting Examples web page.
Here you can control cookies using the checkboxes below. Some cookies are essential for the use of our website and cannot be disabled. Others provide a convenience to the user and, if disabled, may reduce the ease of use of our site. Finally, some cookies provide anonymous analytic tracking data that help us provide the user with a richer browsing experience. You can elect to disable these cookies as well.