• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTask setStandardOutput: then stringWithContentsOfFile gives empty string (From: Gonzalo Castro <email@hidden>)
 >Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string (From: "Shawn Erickson" <email@hidden>)
 >Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string (From: Rosyna <email@hidden>)
 >Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string (From: Rosyna <email@hidden>)
 >Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string (From: Oleg Kibirev <email@hidden>)

  • Prev by Date: Re: Capturing Command-Tab and Command-Alt-Esc
  • Next by Date: Re: Newbie question about _NSSize and NSSize
  • Previous by thread: Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
  • Next by thread: Re: NSTask setStandardOutput: then stringWithContentsOfFile gives empty string
  • Index(es):
    • Date
    • Thread