VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Method to stop script in multiple sessions (https://forums.vandyke.com/showthread.php?t=13955)

GJB56 10-29-2019 11:15 AM

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?

jdev 10-29-2019 02:01 PM

1 Attachment(s)
Quote:

Originally Posted by GJB56 (Post 52523)
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

GJB56 10-30-2019 08:15 AM

This method works great. Thx


All times are GMT -6. The time now is 05:00 AM.