NSTask Question
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.