Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-02-2012, 04:49 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,579
Post Example: SFTP Tab Automation

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).

.
Attached Files
File Type: txt SFTPTabAutomation.vbs.txt (3.5 KB, 1650 views)
File Type: txt SFTPTabAutomation.py.txt (4.3 KB, 1432 views)
File Type: txt AutomateConnectSFTPForOpenTabs.py.txt (4.2 KB, 147 views)

Last edited by jdev; 10-05-2020 at 03:10 PM. Reason: Add new example for Automating SFTP tab opening for existing tabs
Closed Thread

Tags
example script


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:29 AM.