You cannot fork from a web2py app. You should not form from ANY web application. The reason is that each page is served by a thread started by the web server (or a proxy). By forking you for the entire web-server (or proxy) with lots of memory overhead and lots on potential consequences.
Use this instead: http://docs.python.org/library/subprocess.html#module-subprocess Massimo On Apr 16, 9:49 am, "[email protected]" <[email protected]> wrote: > I'm writing a web-based management interface. Part of the data comes > from an existing mysql database and part comes from large groups of > hosts which I currently access via telnetlib. > > I need to connect to up to 20 other hosts to gather information or to > send commands. This needs to be done concurrently which I'm doing now > by fork()ing. > > Assuming I can plug my forking telnetlib code into web2py, would this > go into the model or into a controller? > > ae --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

