Best way to execute a shell script from a cocoa application

2008-03-18 Thread Ryan Chapman
What is the best way to execute a shell script from a Cocoa application? I need to be able to specify arguments, like what execv() provides. -Ryan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Best way to execute a shell script from a cocoa application

2008-03-18 Thread Jean-Daniel Dupas
Le 18 mars 08 à 19:14, Ryan Chapman a écrit : What is the best way to execute a shell script from a Cocoa application? I need to be able to specify arguments, like what execv() provides. -Ryan NSTask is able to launch an executable with arguments.

Re: Best way to execute a shell script from a cocoa application

2008-03-18 Thread Mark Dawson
Look at the TaskWrapper sample code (http://developer.apple.com/samplecode/Moriarity/listing5.html). This not only launches a system command, but can update your UI for the IO feedback? Mark What is the best way to execute a shell script from a Cocoa application? I need to be able to