#1
|
|||
|
|||
scripting from bash shell/escape sequences
Hi,
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`" and echo "^[&&Bclone-session `pwd`" and echo "^[&&Bclone-window `pwd`" But that isn't right. Is there a list of all of the possible commands anywhere? |
#2
|
|||
|
|||
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.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Tags |
bash , escape sequence , scripting |
Thread Tools | |
Display Modes | Rate This Thread |
|
|