Sign in to follow this  
Followers 0
Rury

Run exe in several Terminal Services simultaneously

5 posts in this topic

Hey folks...
 
Well, I've started using AutoIt a few months ago and I'm planning on using it to help me at work.
What I need now is to know if it is possible for me to open 5 Terminal Services and in each one run the exe file of my script. My script takes about 20 min to finish, so I need to run them simultaneously to test my DB performance.
Is there anyway to do that? As far as I know it's not possible, but I know very little about it.
Any help would be great
 
Thanks a lot.
 
PS.: If there's any English mistake, I'm sorry, It's not my main language...I'm brazilian. 

Share this post


Link to post
Share on other sites



hello Rury, welcome to AutoIt and to the forum!

simple solution: put a shortcut to your script in all users startup folder, then open the sessions. the few seconds interval between sessions opening should not make much of a difference to a 20-minute script.

(i guess you men to open the sessions manually)

Share this post


Link to post
Share on other sites
Thanks for the prompt reply!
 
Yes, I intend to open them manually and then run the script. But, I tried once with one session opened and didn't work. The script stops running in the session.
How can I do to let it running on a session, open another one and keep the script running at the first session simultaneously with the second script which  I'll open at the second session? 
And yes, 1-minute delay makes no diference to me.
 
Obs.: My script needs to open and send some information to a software.

Share this post


Link to post
Share on other sites

anything running in the user context will terminate when the user terminates the session. you'll have to open a session, run the script, minimize the session, start the next session, etc. while the scripts are running, visit every session to prevent it from closing automatically. when all is done, quit every session in order.

if the script terminates before session is terminated, check your script to see why.

alternatively, you can launch the script several times on the same session. performance-wise there should be only little difference, so if you're worried, launch it 10 times. or 100 times.

Share this post


Link to post
Share on other sites

I reviewed my script and corrected my mistakes.

Thanks!

It's working fine now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0