Re: issues with NSTask/NSPipe
Re: issues with NSTask/NSPipe
- Subject: Re: issues with NSTask/NSPipe
- From: Ingvar Nedrebo <email@hidden>
- Date: Mon, 18 Mar 2002 16:37:22 +0000
On Monday, March 18, 2002, at 01:13 , Jim Puls wrote:
So, say, for example, that one was going to write a program to
interface with a command shell, using NSTask to run the shell and
NSPipe for I/O. How would one go about reading and writing from a
program that expects interactivity? I've pasted in what I've tried,
but it's obviously the wrong thing. I would be highly appreciative if
somebody could disperse the cloud of ignorance that has settled in
around my head.
To avoid buffering problems, you need to use a pseudo tty. I have posted
a very simple example of this on
http://homepage.mac.com/inedrebo --
look for pseudotty.tar.gz.
I.
_______________________________________________
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.