Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Unix wrapping questions

Unix wrapping questions
Thread Tools
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Apr 25, 2001, 11:45 PM
 
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.
Spectral Class
"Shedding Light on Innovation"
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:27 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2