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 [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.


Reply via email to