• 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
NSTask Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTask Question


  • Subject: NSTask Question
  • From: Glenn Zelniker <email@hidden>
  • Date: Tue, 22 Jun 2004 15:50:38 -0400

I am using NSTask and NSPipe to wrap a unix command in a GUI. I've followed most of the standard examples that use pipes to handle stdin, stdout, and stderr and they make sense to me. But how do I deal with interaction after the task is launched? For example, let's say I'm trying to wrap something like scp that can't be passed a password from the command line. How can I direct the password prompt to the GUI and send it back to the task? Should I parse the NSData coming up the pipe and look for the substring "password", or is there a slicker way to do this?

Glenn Zelniker
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSTask Question
      • From: Tom Harrington <email@hidden>
    • Re: NSTask Question
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: mouseDragged event
  • Next by Date: Re: Reading value of a checkbox in an NSTable
  • Previous by thread: Re: mouseDragged event
  • Next by thread: Re: NSTask Question
  • Index(es):
    • Date
    • Thread