VanDyke Software

Scripting Examples

Index

Ping Host from Selection/Clipboard Using Local Shell Connection

This example script shows how to utilize the "Local Shell" capability of SecureCRT to launch a local "ping" command for any of the following (in order of precedence):

  1. Currently in clipboard;
  2. Currently selected in the terminal window (if the clipboard is empty); or
  3. Specified by the individual when prompted (if neither the clipboard nor the selection matches the pattern of a valid host name or IP address).

Note: This script requires a version of SecureCRT that supports the Local Shell protocol and will only work on an OS that supports Local Shell connectivity (e.g., Linux, macOS, and Windows 10 Version 1809 and newer).

Example Script

PingHostFromClipboardOrSelection(LocalShell).py.txt (8.71 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.