Re: NSTask - grep
Re: NSTask - grep
- Subject: Re: NSTask - grep
- From: Art Isbell <email@hidden>
- Date: Tue, 10 Jul 2001 10:18:22 -1000
On Tuesday, July 10, 2001, at 06:46 AM, Markus Hitter wrote:
To access this from within C/ObjC code, the BSD layer has two
simple and well working calls: system() and popen(), see their
man pages. Both execute via the shell.
The only thing with these is, they block execution until
they're finished. That's bad or good depending on the context.
And they're not necessarily portable. Portability is one of
the features of NSTask. While portability may not be an issue
now, the Cocoa predecessor, OPENSTEP, was ported to NT. Should
something similar ever happen again, those who avoid
platform-dependent code will have much less porting work to do.
Art Isbell
Apple iServices Technical Support
http://www.apple.com/iservices/webobjectssupport/
+1-808-591-0836