Shabbir Ahmed <shabbir1...@gmail.com> writes: > hi hope all are doing good, i have code written in perl which quries > too many devices and then stores the result in mysqldb, whiel shifting > to python and googling i heared of and studied google asynch python > code, now i wanted to use it n convert my perl code to it but i have > some problem.
So now you have two problems: a) your Perl code doesn't work as you want and b) your lack of Python coding skills. > read all the ips and communities from mysql then fork function for > every router so that all the equipment are queried at once, it creates > that much saperate process of equipment ips, If thats a problem, why not fork a worker pool of a limited number of processes? An other options might be to use POE. > kindly help me convert this code to python or make this logic in > python. Like I already wrote, you have now 2 problems. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list