mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-28 19:20:51 +00:00
22 lines
354 B
Mathematica
22 lines
354 B
Mathematica
|
#include <Foundation/NSAutoreleasePool.h>
|
||
|
#include <Foundation/NSTask.h>
|
||
|
|
||
|
int
|
||
|
main()
|
||
|
{
|
||
|
id pool;
|
||
|
NSTask *task;
|
||
|
|
||
|
pool = [[NSAutoreleasePool alloc] init];
|
||
|
|
||
|
task = [NSTask launchedTaskWithLaunchPath: @"/bin/ls"
|
||
|
arguments: nil];
|
||
|
[task waitUntilExit];
|
||
|
printf("Exit status - %d\n", [task terminationStatus]);
|
||
|
|
||
|
[pool release];
|
||
|
|
||
|
exit(0);
|
||
|
}
|
||
|
|