Unix System Call in Objective-C
Posted
by Biranchi
on Stack Overflow
See other posts from Stack Overflow
or by Biranchi
Published on 2009-12-16T05:12:18Z
Indexed on
2010/03/17
4:41 UTC
Read the original article
Hit count: 537
Hi all,
Is it possible to make system call in Objective-C?
I have the following code:
if (!system("ls -l")) {
NSLog(@"Successfully executed");
} else {
NSLog(@"Error while executing the command");
}
How to get the output?
Thanks
© Stack Overflow or respective owner