Results 1 to 2 of 2

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Running system() commands in iOS SDK

  1. #1
    Default Running system() commands in iOS SDK
    Hello, I'm attempting run a few system() commands in my iOS application, and it's not working. I don't know what it is, I've done chown root /Applications/MyApp.app,
    chown root /Applications/MyApp.app/MyAppExecutable,
    chgrp wheel /Applications/MyApp.app/MyApp, and /Applications/MyApp.app/MyAppExecutable. I've also done chmod 755 /Applications/MyApp.app, and /Applications/MyApp.app/MyAppExecutable, but it's still not working. I don't know what to do. Is there a framework I can import into my project? Maybe some external APIs? Please somebody help me! Thank you for any help!

  2. #2
    your system commands should execute, however you can't read any of the output. you might consider using NSTask. To access it you will need to copy the header file from your mac into your project. Is this what you wanted to know?

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •