[TriLUG] Do a lot of you program in Python?

Kevin Hunter Kesling hunteke at earlham.edu
Wed Jan 8 19:45:26 EST 2014


At 7:08pm -0500 Wed, 08 Jan 2014, Greg Brown wrote:
> I took a class at a local tech school (and I've done some training via
> iTunes U) but I can't find a working solution for one thing that will allow
> me to displace perl and expect at my job which is something I'd like to do
> in order to make Python my main language.
>
> And since I'm on the topic that thing is forked process management.  I have
> a network consisting of ~10,000 devices and in order to run a job against
> all of those devices and have it complete within a reasonable amount of
> time I need to fork about 15 or 20 processes at a time, ssh or telnet to
> each one, do whatever needs to be done to the devices then move on to the
> next one.

Gah.  And to actually answer your question with useful links:

     [1] https://github.com/pexpect/pexpect
     [2] http://docs.python.org/2.7/library/multiprocessing.html

That should get you started.

Cheers,

Kevin


More information about the TriLUG mailing list