On Aug 25, 2007, at 11:51 AM, Jordan K. Hubbard wrote:
On Aug 25, 2007, at 11:41 AM, Finlay Dobbie wrote:
Yes, but we were discussing the fragility of parsing tool output.
OK, well, that's an easy discussion: Don't do that.
On Aug 24, 2007, at 11:17 PM, Terry Lambert wrote:
popen of lsof will work, assuming you use the output format
specifiers to prevent it from changing output format on you, or
simply look at the found/not fond return value.
The point of forcing you to write wrappers around standard tools
instead of doing what the tool does is to ensure you that when the
system is updated, you are guaranteed that the tools are updated at
the same time that the kernel and other system components are
updated, so your code will continue working, even if we change the
system interface used by the tool.
Jordan, unless I'm mistaken, you're saying don't do what Terry said to
do.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden
This email sent to email@hidden