Kill process from iPhone app

Discussion in 'iOS Programming' started by strife07, Aug 25, 2009.

  1. strife07 macrumors newbie

    Joined:
    Jul 21, 2009
    #1
    Hi,

    I'm not sure if I'm posting in the right section. If it isn't, mods please help to move this thread. Thanks!

    Anyway, I'm working on a jailbroken phone. And I need to find a way to kill certain processes from my app.

    I've tried doing:
    Code:
    system("usr/bin/killall processName");
    But this is not working on the iPhone. It did work on the simulator when I tested it though.

    I tried popen, but it isn't working either.
     
  2. jnic macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
  3. strife07 thread starter macrumors newbie

    Joined:
    Jul 21, 2009
    #3
    I'm quite sure killall is in the directory /usr/bin/.
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Yes, but I think they were pointing out you are missing the opening slash ( / ). That's why it was bolded.
     

Share This Page