• 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
Stderr from AuthorizationExecuteWithPrivileges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stderr from AuthorizationExecuteWithPrivileges


  • Subject: Stderr from AuthorizationExecuteWithPrivileges
  • From: "Sven A. Schmidt" <email@hidden>
  • Date: Tue, 12 Jun 2001 13:50:05 +0200

In my project, I use the Authorization framework to access a cli tool with root privileges. Reading from stdout and writing to stdin works fine via the (FILE **)communicationsPipe parameter in AuthorizationExecuteWithPrivileges(...). But the cli tool (crontab) also returns stuff via stderr which I'd need to get a hold of.
Is there a way to get a handle to stderr?
What about the return value?
Or, even better, is there a way to promote an NSTask to root privileges?
Is there any special reason for the double star in (FILE **)communicationsPipe? Is it an "implicit" array with stderr hiding in a higher offset?

TIA,
Sven


  • Follow-Ups:
    • Re: Stderr from AuthorizationExecuteWithPrivileges
      • From: Eric Peyton <email@hidden>
  • Prev by Date: Re: Jeff Lamarche: Public Enemy #1
  • Next by Date: Re: Start & Stop demon
  • Previous by thread: Re: 2 questions-(drawer)
  • Next by thread: Re: Stderr from AuthorizationExecuteWithPrivileges
  • Index(es):
    • Date
    • Thread