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                                              
laurent.daude...@gmail.com
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to