• 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: sudo from nstask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: sudo from nstask (From: April Gendill <email@hidden>)

  • Prev by Date: Re: sudo from nstask
  • Next by Date: Re: unused parameters
  • Previous by thread: Re: sudo from nstask
  • Next by thread: Re: sudo from nstask
  • Index(es):
    • Date
    • Thread