Calling UNIX command from Cocoa

2008-10-16 Thread development2
Ok., I am sure I have seen one but can't seem to find it. I need an Open Source class to call a command line program with a couple of arguments. Does any one know of any and where I can find one? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Ken Thomases
On Oct 16, 2008, at 3:09 PM, development2 wrote: Ok., I am sure I have seen one but can't seem to find it. I need an Open Source class to call a command line program with a couple of arguments. Does any one know of any and where I can find one? Do you need open source to see the source, or

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Franklin Marmon
Calling a command line function can be handled with plain old C as well. Look at the exec() function set. frm Franklin Marmon [EMAIL PROTECTED] GTalk: [EMAIL PROTECTED] On Oct 16, 2008, at 2:14 PM, Ken Thomases wrote: On Oct 16, 2008, at 3:09 PM, development2 wrote: Ok., I am sure I ha

Re: Calling UNIX command from Cocoa

2008-10-16 Thread development2
Yeah I know about NSTask, I just can't get it too work correctly. On Oct 16, 2008, at 2:14 PM, Ken Thomases wrote: On Oct 16, 2008, at 3:09 PM, development2 wrote: Ok., I am sure I have seen one but can't seem to find it. I need an Open Source class to call a command line program with a cou

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Bill Bumgarner
On Oct 16, 2008, at 3:03 PM, development2 wrote: Yeah I know about NSTask, I just can't get it too work correctly. NSTask is one heck of a lot easier to use than any of the lower level calls except, maybe, popen(). It definitely works, too. What are the failure symptoms? b.bum smime.p7

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Torsten Curdt
On Oct 17, 2008, at 00:08, Bill Bumgarner wrote: On Oct 16, 2008, at 3:03 PM, development2 wrote: Yeah I know about NSTask, I just can't get it too work correctly. NSTask is one heck of a lot easier to use than any of the lower level calls except, maybe, popen(). It took me also quite a

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Andreas Mayer
Am 17.10.2008 um 00:03 Uhr schrieb development2: Yeah I know about NSTask, I just can't get it too work correctly. This might help: http://www.harmless.de/cocoa-code.php#shellwrapper Andreas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Calling UNIX command from Cocoa

2008-10-17 Thread Aurora Phoenix
Without knowing more specifics, I am struggling to find why one would need a full-blown class just to invoke a command. At the simplest, one could use the system(3) call, or the exec/spawn/fork/popen families depending on what you need. It is of course, possible to wrap up something fancy like us

Re: Calling UNIX command from Cocoa

2008-10-17 Thread Clark Cox
On Fri, Oct 17, 2008 at 4:14 PM, Aurora Phoenix <[EMAIL PROTECTED]> wrote: > > Without knowing more specifics, I am struggling to find why one would need a > full-blown class just to invoke a command. Because it is easier to use, and it handles many edge cases. Also, you are over-estimating the ov