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 10-29-2019, 12:15 PM
GJB56 GJB56 is offline
Registered User
 
Join Date: Nov 2011
Posts: 22
Method to stop script in multiple sessions

I work in a test environment and routinely run scripts in 20+ sessions. A lot of the scripts are very long running or loop forever.

Problem: I need to stop the script on all sessions. Very cumbersome to do this on individual sessions. It would be nice to be able to do this on the menu like Close All Sessions.


Any ideas?
Reply With Quote
  #2  
Old 10-29-2019, 03:01 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 942
Quote:
Originally Posted by GJB56 View Post
Problem: I need to stop the script on all sessions. Very cumbersome to do this on individual sessions.
I've created a feature request for a "Cancel All Running Scripts" or similar menu item to be added to the "Script" menu.

In the mean time, there might be a workaround you could employ if you are on Windows, and all of your scripts are written in VBScript...

Enable SecureCRT's Button Bar if you have not done so already.
Video: SecureCRT's Button Bar
Video: Button Bar Enhancements in SecureCRT
Then, map a button to perform the following "Menu Function": MENU_SCRIPT_CANCEL

Shift+Click the button when you want to perform a button's action across all of your existing tabs in the same SecureCRT window.

Does this work for you?

--Jake
Attached Images
File Type: png SCRT_Help_ButtonBar_ShiftClick.png (105.6 KB, 22 views)
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
  #3  
Old 10-30-2019, 09:15 AM
GJB56 GJB56 is offline
Registered User
 
Join Date: Nov 2011
Posts: 22
This method works great. Thx
Reply With Quote
Reply


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 09:37 AM.