Re: Wrapping unix commands
Re: Wrapping unix commands
- Subject: Re: Wrapping unix commands
- From: John Hörnkvist <email@hidden>
- Date: Thu, 1 Nov 2001 21:09:12 +0100
On Thursday, November 1, 2001, at 08:47 PM, David Remahl wrote:
Cocoa Developers,
How do you wrap a 'simple' unix command like 'whoami' or 'cd
/dev/cu.modem' for example?
I've seen a few examples of complicated wrappers but I want something
simple and small, when I worked in realbasic it was as simple as:
Dim myShell as shell
myshell.execute-"whoami"
Surely there's a really simple way to do it in cocoa?
Luke.
Search the archives for NSPort. In fact, the question was asked
yesterday
and answered as well...There is plenty of documentation on it as well.
NSTask and NSPipe would give more relevant hits, I think.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com