By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,710 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,710 IT Pros & Developers. It's quick & easy.

Multiple "system" commands? (asynchronously?)

P: 4
Hey!

I simply want to run multiple system $someprogram commands without having to wait for the previous program to shut down before the next one is opened..

e..g
Expand|Select|Wrap|Line Numbers
  1. sub startMyProgs
  2. {
  3.     system $startProgram1;
  4.     system $startProgram2;
  5.     system $startProgram3;
  6. }
  7. # Where $starProgram1 = "SomeApp.exe";
  8. # and $starProgram2 = "SomeOtherApp.exe";
  9.  
The problem now is that after system $startProgram1; it waits until I shut down that program, before it runs system $startProgram2;.
So how can I make it simply run all these three programs without depending on the previous one to be shut down?
Feb 11 '09 #1
Share this Question
Share on Google+
2 Replies


KevinADC
Expert 2.5K+
P: 4,059
You will need to look into Threads. I don't have much experience with using them myself so thats about all the help I can be. Maybe someone else can be more specific.
Feb 11 '09 #2

P: 4
Ye threads did the trick =) Thx
Feb 11 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.