howto start a command?

Discussion in 'iOS Development' started by albert_$n, Apr 7, 2008.

  1. albert_$n

    albert_$n New Member

    Joined:
    Mar 2, 2008
    Messages:
    338
    Likes Received:
    6
    How can i start a exec command in ObjC ?
    like chmod 755 ??
  2. jeppeb

    jeppeb New Member

    Joined:
    Apr 3, 2008
    Messages:
    14
    Likes Received:
    0
    http://www.ifans.com/forums/showthread.php?t=54149

    You can only use commands that are installed by BSD Subsystem/Cydia (look in map 'bin')
    Use:
    [self runCommand

    Please Register or Log in to view images

    "/bin/chmod -R 755 /Applications"] (The -R sets the permissions 'recursively', that means every file in map applications will be 755)
    (You need my function runCommand, you'll find it at the URL above)
    (This forum has a SEARCH function also

    Please Register or Log in to view images

    )

Share This Page