shell commands from within iphone app

Discussion in 'Jailbreaks and iOS Hacks' started by myrythm, May 22, 2008.

  1. myrythm macrumors newbie

    May 22, 2008
    I am developing some apps on a pwned 1.1.4 iPhone using the dev-team's tool chain. I am relatively new to this. Con someone tell me what is the best way to execute shell commands from within the iphone app (I am overriding the swipe method and I need to execute some shell commands while within this method). I have BSD installed on the phone.

    I tried execl() and system() commands, but they don't work. I can compile the code, but none of the shell commands get executed. I have read somewhere that NSTask will not work on the iPhone.

    Any help would be appreciated. Thanks.
  2. myrythm thread starter macrumors newbie

    May 22, 2008
  3. HARDWARRIOR macrumors member

    Nov 17, 2008
    Any luck on this problem? I have the same question. I need to launch another process from my app.

Share This Page