RosettaCodeData/Task/Execute-a-system-command/Objective-C/execute-a-system-command-1.m
2014-04-02 16:56:35 +00:00

5 lines
107 B
Objective-C

void runls()
{
[[NSTask launchedTaskWithLaunchPath:@"/bin/ls"
arguments:@[]] waitUntilExit];
}