Ok, I did not type out the example as I should, but still, it fails.
With an no permission exception.
And I would love to execute the example with something like:
[task setLaunchPath:@"perl"];
You never know what version is installed on the target computer...
You might want to point it to an executable ;) ...not just a path
and option.
Depending on want you want to do NSTask might not be as easy to use as
it looks on the first glance. You might want to re-use some existing
wrapper. Here is one for example: