Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
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

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?
Reply With Quote
  #2  
Old 08-24-2020, 01:56 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,438
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
Reply With Quote
Reply

Tags
bash , escape sequence , scripting


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 07:05 PM.