egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Executing commands simultaniously, max n at a time

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
sander_vk
Voice


Joined: 06 Jul 2007
Posts: 4

PostPosted: Thu Aug 02, 2007 9:03 am    Post subject: Executing commands simultaniously, max n at a time Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Aug 02, 2007 7:15 pm    Post subject: Reply with quote

... 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
View user's profile Send private message Visit poster's website
sander_vk
Voice


Joined: 06 Jul 2007
Posts: 4

PostPosted: Fri Aug 03, 2007 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Aug 03, 2007 9:03 am    Post subject: Reply with quote

The places listed here are far better suited for this question.
Back to top
View user's profile Send private message
sander_vk
Voice


Joined: 06 Jul 2007
Posts: 4

PostPosted: Fri Aug 03, 2007 10:16 am    Post subject: Reply with quote

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber