Do you guys know how to run terminal commands from you GUI application? I need the coding for my app. For example, if I type “netstat” in terminal it will give me all the ports. I want to this from my xcode app. Is that possible? BTW it’s not just the “netstat” command it could be “sudo…. “
Thanks,
Kevin
Here is some code I just cut out of one on my apps that uses NSTask.
This launches an app (java) and records the output in a temp file