• 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
Problem executing lpadmin from NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem executing lpadmin from NSTask


  • Subject: Problem executing lpadmin from NSTask
  • From: Laurent Daudelin <email@hidden>
  • Date: Mon, 19 Oct 2009 17:58:29 -0700

Hello.

I'm trying to launch an NSTask to execute /usr/sbin/lpadmin but even though I can do so in the terminal, NSTask refuses to launch it. If I set the launch path to /usr/sbin/lpadmin, NSTask reports that /usr/sbin/lpadmin is a directory? If I set the current directory to /usr/sbin and the launch path to lpadmin, NSTask reports that the path is not accessible.

I checked and double-checked, /usr/sbin is a real path and lpadmin is there, not a symbolic link in any way. I don't have to authenticate to run it so I"m lost as to why NSTask can't seem to launch that executable.

Anybody has any idea?

Thanks in advance.




-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://nemesys.dyndns.org
Logiciels Nemesys Software              				email@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problem executing lpadmin from NSTask
      • From: Dave Keck <email@hidden>
  • Prev by Date: Re: Dirty rects getting merged together makes for inefficient drawing
  • Next by Date: [Solved] Problem executing lpadmin from NSTask
  • Previous by thread: Re: Dirty rects getting merged together makes for inefficient drawing
  • Next by thread: Re: Problem executing lpadmin from NSTask
  • Index(es):
    • Date
    • Thread