Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Running shell scripts on iPad/iPhone

I want to know if one can execute a shell script in an iPad/iPhone app.

I have tried searching but I haven't got an exact answer yet. The general response is negative. 😟


The simplest example of this would be a script execution on a button click event which will echo "Hello World!".


I also need to know if there is a way to add a set of commands to the existing set of scripts.

This can be done on the mac by simply downloading the folder to the hard drive.

iPad, iOS 6

Posted on Jan 11, 2013 2:36 AM

Reply
6 replies

Jan 11, 2013 7:24 AM in response to aniruddha.wani

You can do this, but you have to jump through some hoops. The App Store guidelines explicity say that apps that install or launch other executable code will be rejected. Your app can include an embedded interpreter that executes scripts included as resources in your app. You cannot download new scripts because that is explicitly forbidden too. But if you include the scripts in the app, and include an embedded interpreter in the app, you should be fine.

Running shell scripts on iPad/iPhone

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.