Re: sudo from nstask
Re: sudo from nstask
- Subject: Re: sudo from nstask
- From: Chris Ridd <email@hidden>
- Date: Sat, 27 Sep 2003 22:51:40 +0100
On 27/9/03 10:23 pm, April Gendill <email@hidden> wrote:
>
On Saturday, September 27, 2003, at 01:43 PM, David Blanton wrote:
>
> // we need a pipe for stdin to pass a password to sudo
>
> NSPipe * stdinPipe = [[NSPipe alloc] init];\
>
>
how can you open a pipe if there is no task?
Just like that! Pipes don't have to be associated with other tasks, in fact
you can use them to communicate between threads of the same program.
Since I suspect NSPipe is a wrapper around the POSIX pipe call, perhaps
you'd find it useful reading the pipe man page.
Cheers,
Chris
_______________________________________________
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.