I'm trying to get process list with bash "ps" command via NSTask on OS X.
When I turn on App Sandbox, application crashes and I got this error in console:
14.06.14 2:16:35,426 sandboxd[356]: ([74340]) MyApp(74340) deny forbidden-exec-sugid
Is there any solution for this problem?
Fragment of code:
NSTask *topTask = [NSTask new];
[topTask setLaunchPath:@"/bin/ps"];
[topTask setArguments:[NSArray arrayWithObjects:
@"-eo", @"pid,pcpu,rss,comm", // output columns
nil]];