This is probably a stupid question, but how can I execute a shell command from my Cocoa app?
I have the command as a string \"command\", but can easily manipulate da
If you just want to run something and don't care about the output or return code (for example, you want to touch a file), you can just do
system("touch myfile.txt");
Easy as that.