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 > accessing CLI apps (as in renice etc..)

accessing CLI apps (as in renice etc..)
Thread Tools
Junior Member
Join Date: Nov 2000
Status: Offline
Reply With Quote
Feb 3, 2001, 04:55 PM
 
I am wondering how one accesses the unix CLI tools from a Cocoa or Java application, I am trying to build a gui wrapper for some tools as a way to start learning cocoa (in java or obj.-c)

-max
     
Grizzled Veteran
Join Date: Sep 2000
Location: Netherlands
Status: Offline
Reply With Quote
Feb 3, 2001, 07:38 PM
 
Originally posted by mxcantor:
I am wondering how one accesses the unix CLI tools from a Cocoa or Java application, I am trying to build a gui wrapper for some tools as a way to start learning cocoa (in java or obj.-c)

-max
Nicer includes the code these days. Simply open it up and look at the ShellAccess class. It's actually quite easy. The processing of the returned strings is often the biggest problem.

DJ

Derk-Jan Hartman, Student of the University Twente (NL), developer of VLC media player
     
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Feb 3, 2001, 11:35 PM
 
You can find Nicer here, btw.
     
Mac Enthusiast
Join Date: Feb 2000
Location: Storrs,Connecticut, USA
Status: Offline
Reply With Quote
Feb 4, 2001, 07:43 PM
 
If you wish to put a pretty GUI onto some command line apps one thing to look at, since most of them are GPL'd, is getting the source and building a full-fledged GUI app with some of the code for the CLI app at it's core. If the CLI app is written in C then it isn't too hard to do since Objective C is 100% compatible with C. The only catch is that you must release the code that you write. (Because of the GPL.)
     
   
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 12:17 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