VanDyke Software

Scripting Examples

Index

Connect to Hosts in the Clipboard (One Per Line)

This example script shows how to instruct SecureCRT to establish ad hoc connections to hosts listed one by one in the clipboard.

For example, if the following is in the clipboard...

host1.example.com
host2.example.com
host3.example.com
host4.example.com
host5.example.com
host6.example.com

...Or even, with authentication credentials:

ssh://user1:p4$$w0rd@192.168.1.1
ssh://user2:p4$$w0rd@192.168.1.2
ssh://user3:p4$$w0rd@192.168.1.3
ssh://user4:p4$$w0rd@192.168.1.4
ssh://user5:p4$$w0rd@192.168.1.5
ssh://user6:p4$$w0rd@192.168.1.6

... then running this script will cause SecureCRT to connect to each host on a specific line in separate tabs in the SecureCRT window.

Example Script

ConnectToHostsInClipboard-One-per-Line-AdHocTabs.py.txt (1.84 KB)

 

VanDyke Software uses cookies to give you the best online experience. Before continuing to use this site, please confirm that you agree to our use of cookies. Please see our Cookie Usage for details.