However, the development server is single-threaded, which makes debugging this "interesting".
On Dec 29, 12:04 pm, mb <[email protected]> wrote: > Even though App Engine doesn't allow spawning new threads, you could > expose each subprocess on its own URI and run them asynchronously with > urlfetch:http://code.google.com/appengine/docs/python/urlfetch/asynchronousreq... > > On Dec 28, 9:08 pm, AL <[email protected]> wrote: > > > > > Hi everybody. > > > I need to invoke an external process in one of my app engine pages > > like so: > > > import subprocess > > p = subprocess.Popen("ls -la", shell=True, stdout=subprocess.PIPE, > > stderr=subprocess.STDOUT) > > for line in p.stdout.readlines(): > > self.response.out.write(line) > > retval = p.wait() > > > This code works fine in regular python but app engine says > > AttributeError: 'module' object has no attribute 'Popen' > > > wondering if calling an external application or forking a process is > > possible. I'm doubtful because of the security implications, but im > > also a newbie at python. > > > Thanks Y'all- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en.
