1

I am trying to execute simple system command via my servlet on google app engine. I'm not trying anything dangerous, just looking for simple stuff grep, sed, wget, find, etc.

Using java's Runtime class i keep getting access denied exceptions.

Do i have to get permission from google of some kind or are shell commands banned period?

LoudNPossiblyWrong
  • 3,855
  • 7
  • 33
  • 45
  • 1
    See: http://stackoverflow.com/questions/2152114/google-app-engine-to-run-executable-files – Jeff May 26 '10 at 16:08
  • 2
    Whether it's dangerous or not, who says Google App Engine's servers are running on an OS which has grep, sed, wget, find, etc, installed? Or a shell? Short answer is just no, GAE doesn't provide any "system" environment. If it helps, imagine you're in an Applet-style sandbox and security manager. Google's servers don't trust you. – Steve Jessop May 26 '10 at 16:24
  • I know at least that google app engine i running on some flavor of linux. – LoudNPossiblyWrong May 27 '10 at 13:41

1 Answers1

3

Fairly sure you can't do this.

An App Engine application cannot:

* make other kinds of system calls.
pycruft
  • 66,157
  • 1
  • 20
  • 12