>From here: http://code.google.com/appengine/docs/python/runtime.html#The_Sandbox
<http://code.google.com/appengine/docs/python/runtime.html#The_Sandbox> An App Engine application cannot: - write to the filesystem. Applications must use the App Engine datastore<http://code.google.com/appengine/docs/python/datastore/> for storing persistent data. Reading from the filesystem is allowed, and all application files uploaded with the application are available. - open a socket or access another host directly. An application can use the App Engine URL fetch service<http://code.google.com/appengine/docs/python/urlfetch/> to make HTTP and HTTPS requests to other hosts on ports 80 and 443, respectively. - spawn a sub-process or thread. A web request to an application must be handled in a single process within a few seconds. Processes that take a very long time to respond are terminated to avoid overloading the web server. - make other kinds of system calls. On Mon, Dec 28, 2009 at 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 > > -- > > 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]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > > -- Ikai Lan Developer Programs Engineer, Google App Engine -- 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.
