【问题标题】:How do i execute system commands in google app engine?如何在谷歌应用引擎中执行系统命令?
【发布时间】:2010-05-26 16:05:27
【问题描述】:

我正在尝试通过我在谷歌应用引擎上的 servlet 执行简单的系统命令。我没有尝试任何危险的东西,只是在寻找简单的东西 grep、sed、wget、find 等。

使用 java 的运行时类,我不断收到拒绝访问的异常。

我是否必须获得某种形式的 google 的许可,或者 shell 命令是否被禁止?

【问题讨论】:

  • 无论危险与否,谁说 Google App Engine 的服务器运行在安装了 grep、sed、wget、find 等的操作系统上?还是贝壳?简短的回答是否定的,GAE 不提供任何“系统”环境。如果有帮助,想象一下您在 Applet 风格的沙箱和安全管理器中。 Google 的服务器不信任您。
  • 我至少知道我在某种版本的 linux 上运行的谷歌应用引擎。

标签: google-app-engine


【解决方案1】:

你很确定can't do this

App Engine 应用程序不能:

* make other kinds of system calls.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-22
    • 1970-01-01
    • 1970-01-01
    • 2014-01-08
    • 2011-01-10
    • 2012-06-10
    • 1970-01-01
    相关资源
    最近更新 更多