• 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: issues with NSTask/NSPipe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: expanding the view area of a window - please help
  • Next by Date: Re: expanding the view area of a window - please help
  • Previous by thread: issues with NSTask/NSPipe
  • Next by thread: Making application a daemon
  • Index(es):
    • Date
    • Thread