Problem executing lpadmin from NSTask
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