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/asynchronousrequests.html
On Dec 28, 9:08 pm, AL <amle...@gmail.com> 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 -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.