Call a terminal command in a C++ app
So I opened XCode and made a C++ project and got my terminal window to output "Hello, World!" Impressive right! Anyway what I really want to do is to call commands in the terminal window from my C++ app.
An example would be to "ls |grep" something into a list for further processing to use in another terminal command like "ditto" or something.
Can anyone point me in the right direction.
Thanks!!
Dual 2 GHz PowerPC G5, Mac OS X (10.4.4), Full network of 30+ Macs.