Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 08-24-2020, 01:33 PM
Bob_R Bob_R is offline
Registered User
Join Date: Aug 2020
Posts: 1
scripting from bash shell/escape sequences


This one is probably so obvious I'm not finding the answer.

I currently have a script that opens an sftp tab in my current directory per https://www.vandyke.com/support/tips/sftptab.html. Works great and has been a huge time saver and is the first thing I do on a new server.

I'd like something similar that would clone the current ssh session and cd into my current directory. I've tried:
echo "^[&&Bclone `pwd`"
echo "^[&&Bclone-session `pwd`"
echo "^[&&Bclone-window `pwd`"

But that isn't right. Is there a list of all of the possible commands anywhere?
Reply With Quote
Old 08-24-2020, 01:56 PM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,636
Hi Bob_R,

I don't know about incorporating this with the execute escape sequence example you are using. That does not give you access to SecureCRT's objects, properties and methods.

I think you need a conventional script, such as this one in the forums.

You will want to be sure focus has been placed back on the tab with the SSH session. Then you should be able to use:

crt.GetScriptTab.SendSpecial "MENU_TAB_CLONE"

These menu functions and others are documented in the SecureCRT Help topic Configuring the Keyboard / Table of Keymap Functions.

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote

bash , escape sequence , scripting

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 11:39 PM.