Re: Using NSTask and NSPipe to perform a shell script
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