| View previous topic :: View next topic |
| Author |
Message |
sander_vk Voice
Joined: 06 Jul 2007 Posts: 4
|
Posted: Thu Aug 02, 2007 9:03 am Post subject: Executing commands simultaniously, max n at a time |
|
|
I've been scripting in TCL/Expect and want to query multiple devices in a network.
In order to do this I've written executable shell scripts that do the querying on 1 device.
What I now need is a main script that receives as input a list of devices to query and then starts executing the already written scripts in parallel. When a script ends. Another instance of the script should start, keeping the running scripts at 10 until there are not enough devices anymore.
I've been doing some research and found that there are 3 possible ways to go:
Forking
Events
Threads
I now wonder what would be the best direction to go and where I can find some tutorial on it, as the sites I googled didn't have any handy examples to implement this.
Thanks!
Sander |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Aug 02, 2007 7:15 pm Post subject: |
|
|
... and what has this to do with eggdrop? _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
sander_vk Voice
Joined: 06 Jul 2007 Posts: 4
|
Posted: Fri Aug 03, 2007 5:03 am Post subject: |
|
|
Well not that much directly. It is about programming TCL. And I could use an eggdrop to execute the commands in parallel.
If you know a better forum to place my questions on I would be happy to post it there. |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Aug 03, 2007 9:03 am Post subject: |
|
|
| The places listed here are far better suited for this question. |
|
| Back to top |
|
 |
sander_vk Voice
Joined: 06 Jul 2007 Posts: 4
|
Posted: Fri Aug 03, 2007 10:16 am Post subject: |
|
|
| Thanks! |
|
| Back to top |
|
 |
|