Re: Unix Commands
Re: Unix Commands
- Subject: Re: Unix Commands
- From: Drew McCormack <email@hidden>
- Date: Thu, 1 Nov 2001 20:32:18 -0800
Check out NSTask and NSPipe.
Drew
On Thursday, November 1, 2001, at 10:50 AM, Luke Sands 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.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev