• 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: Sending Shell Commands (Modified by John C. Warner)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending Shell Commands (Modified by John C. Warner)


  • Subject: Re: Sending Shell Commands (Modified by John C. Warner)
  • From: "John C. Warner" <email@hidden>
  • Date: Fri, 23 Jul 2004 01:11:56 -0400
  • Resent-cc: email@hidden
  • Resent-date: Fri, 23 Jul 2004 01:13:37 -0400
  • Resent-from: "John C. Warner" <email@hidden>
  • Resent-message-id: <email@hidden >
  • Resent-to: Jim Ways <email@hidden>

(Reposting - whoops, forgot the list)
On Jul 22, 2004, at 11:45 PM, Shawn Erickson wrote:

On Jul 22, 2004, at 7:57 PM, Jim Ways wrote:

Is there any documentation or sample code out there
for sending shell commands to a NSTask? Thanks All

Typing NSTask into the search field on Apple's developer page and the seventh item down (after the API doc links, etc.) is...

<http://developer.apple.com/samplecode/Moriarity/Moriarity.html>

-Shawn

Also look at Andreas Mayer's AMShellWrapper class <http://www.harmless.de/cocoa.html#shellwrapper> which is based on TaskWrapper from Moriarity and provides wrapper methods for working with STDOUT/STDERR and the task's environment, as well as sending a notification when the task has completed.

-John
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Conf files?
  • Next by Date: NSPanel delegate not receiving notifications such as (windowWillClose)
  • Previous by thread: Re: July ADC Mailing
  • Next by thread: NSPanel delegate not receiving notifications such as (windowWillClose)
  • Index(es):
    • Date
    • Thread