VanDyke Software Forums

Go Back   VanDyke Software Forums > Scripting
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-07-2010, 02:04 PM
RecklessRR RecklessRR is offline
Registered User
 
Join Date: Mar 2009
Posts: 23
Thumbs up Nested Scripts

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.
Reply With Quote
  #2  
Old 04-07-2010, 05:10 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 1,015
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?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 04-08-2010, 07:12 AM
RecklessRR RecklessRR is offline
Registered User
 
Join Date: Mar 2009
Posts: 23
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.
Reply With Quote
  #4  
Old 04-08-2010, 11:22 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 1,015
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?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #5  
Old 04-08-2010, 11:30 AM
RecklessRR RecklessRR is offline
Registered User
 
Join Date: Mar 2009
Posts: 23
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.
Reply With Quote
  #6  
Old 04-08-2010, 03:58 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 1,015
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 Request
In 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=2
Does this example look like it might help?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
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

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


© copyright 1995-2010 VanDyke Software, Inc.