Demonstrates opening an SFTP tab & programmatically driving a file download. Prior to running this script, the currently active tab must already be connected with the SSH2 protocol to a remote server that is capable of providing SFTP functionality; otherwise an error will occur and script execution will be halted.
Original Script Example:
SFTPTabAutomation.vbs.txt
SFTPTabAutomation.py.txt
New Script Example:
AutomateConnectSFTPForOpenTabs.py.txt
This example will open SFTP connections for all connected tabs in the same SecureCRT window, by default closing existing shell tabs. No file transfers are automated in this example; it's purpose is to show how to open SFTP tabs in place of shell connections (and it also shows how to drive the Command Window in Send to All mode as well, in order to send initial
lpwd and
pwd commands to each new SFTP tab).
.