Hello,
I recently read through the Unix wrapper tutorial at cocoadevcentral.com and became inspired to write some software to wrap a few of my common CLI operations. I was wondering if anyone knew how to do the following:
1. Efficiently receive lines of standard output from CLI apps executed (I will resort to some use of NSPipe if nobody has a polished method for this yet)
2. Respond to prompts (when the prompt is recognized), particularly requests for a root password when executing commands through the "sudo" program (I know that many programs throw a prompt for the password onto the screen, such as the System Preferences panes and I was wondering if this is performed automatically or if I have to manually invoke it)
3. Write something simpler than their method for catching the Notification left when the CLI app exits (I doubt this is possible because the way in the tutorial is to create something to generate the Notification - just wondering if it could be done without writing that bit of code).
Any help would be appreciated,
Jeff.