• 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: Using NSTask and NSPipe to perform a shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSTask and NSPipe to perform a shell script


  • Subject: Re: Using NSTask and NSPipe to perform a shell script
  • From: David Emme <email@hidden>
  • Date: Tue, 5 Sep 2006 18:15:49 -0700


On Sep 5, 2006, at 3:59 PM, Keith Blount wrote:

Sorry for replying to my own message, but I'm still
trying to get my head around this one. I'm trying to
use NSTask and NSPipe to do the same as:

cat readme.markdown | md2latex.sh > somefile.tex

Are you sure that you really need the "cat..." step? Often people do cat foo | bar >out

when all they really need is
	bar <foo >out

That's only one step, and simplifies the problem greatly. Set stdin and stdout on a single NSTask and you're there.

HTH,
-Dave

--
The fates guide those who will; those who won't they drag.
  - Seneca




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Using NSTask and NSPipe to perform a shell script
      • From: "Jordan Krushen" <email@hidden>
References: 
 >Re: Using NSTask and NSPipe to perform a shell script (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: Programatically detect if any autorelease pool exists?
  • Next by Date: Re: Shift-clicking NSButtonCells?
  • Previous by thread: Re: Re: Using NSTask and NSPipe to perform a shell script (SOLVED)
  • Next by thread: Re: Using NSTask and NSPipe to perform a shell script
  • Index(es):
    • Date
    • Thread