Running shell script using Xcode with arguments on ios
I have an bash script which I wan't to start with arguments by an app. Currently I can generate the command, but how can I execute it? This app is for jailbroken phones only. Any solutions for this? searched alot, but didn't found anything. Nate If this is a jailbreak app, you can run the command by passing it to the system() function that's part of the OS , or one of the exec functions. So, if you decide to install your script at /Applications/MyApp.app/myscript.sh , then in your app, you could use: int result = system("/Applications/MyApp.app/myscript.sh argument1 argument2"); You can