![]() |
|
|
|
#1
|
|||
|
|||
|
I have two scripts. The first one is the main script and it will go through all the open sessions and activate the second script then move on to the next session. I need to know how to call the second script from the first so that it will run on the tabbed session that it was called on. Then my primary script can move on to the next sessionl.
|
|
#2
|
|||
|
|||
|
Hi RecklessRR,
Does your goal involve your script opening 10 tabs, for example, and running a secondary script in each one of those 10 tabs? Or, does your goal involve running a script in 10 existing tabs (not opened by your script)? Or does your goal involve something else entirely? |
|
#3
|
|||
|
|||
|
The tabs will already have been opened by the user. Additionally, i have the secondary script bound to a button at the bottom of SecureCRT. If i can just activate the button, that would be acceptable.
Last edited by RecklessRR : 04-08-2010 at 07:15 AM. |
|
#4
|
|||
|
|||
|
Hi RecklessRR,
Thanks for the clarification. Is there something about what you are attempting to accomplish that requires two scripts? For example, do you need to perform an action in parallel? If not, what is preventing you from combining the two scripts? |
|
#5
|
|||
|
|||
|
I would like to do the jobs in parallel. Right now, i could set it up to run in sequence but that would take way too much time. I want all jobs to run in parallel to save time. The second script already has an auto log off feature so the user knows when all jobs are completed when all sessions are ended.
|
|
#6
|
|||
|
|||
|
Hi RecklessRR,
Thanks for answering all of my questions. SecureCRT does not currently allow multiple scripts to run in the same tab. I have created a feature request in our SecureCRT development database to add this capability. Should a future release of SecureCRT have this capability we will post to this thread. If you would like to be notified directly, please complete and submit the form at the following location: Submit Feature RequestIn the meantime, I can think of two possible methods that could be used to accomplish the goal. You can manually activate each tab, and then press the button that has the script defined, or you can take a look at the example script in the following forum post. This script provides a method for running a script in a pseudo-parallel manner across all open tabs. As a note, this script example is not for the faint of heart. ![]() http://forums.vandyke.com/showpost.p...23&postcount=2Does this example look like it might help? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|