Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
- Subject: Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
- From: Rosyna <email@hidden>
- Date: Mon, 27 Aug 2007 14:48:17 -0700
Ack, at 8/27/07, Oleg Kibirev said:
This is one personal opinion, however UNIX philosophy is very much
about constructing pipelines and reusing existing command line tools
instead of reinventing the wheel:
http://www.linuxlots.com/~dunne/unix-philosophy.html
This isn't about using the command line. It's about not using NSTask
(from a programmatic interface) to run tools and parse their output.
Remember, that page is about doing stuff from a shell and does not
apply to this discussion.
In addition, output of ps is in fact standardized, especially now
that MacOSX is going to be officially certified as UNIX.
This supports the statement that you should not parse the output of
ps because it can, has, and will change. If it changed to be more
compatible with UNIX03 then that means the output changed and won't
be the same as it is on 10.4. Using the APIs directly and you won't
have this problem.
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden