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

Re: NSTask


  • Subject: Re: NSTask
  • From: Filip van der Meeren <email@hidden>
  • Date: Mon, 8 Dec 2008 23:42:19 +0100

I already replied to my typos.
But still the exception is thrown every codesetup I use.

Filip van der Meeren
email@hidden
http://www.sourceforge.net/projects/perlmanager

On 08 Dec 2008, at 23:36, Darren Adkinson wrote:

Filip,

the perl executable itself will be in somewhere like /usr/bin/perl (type 'which perl'). It looks like you'd need uppercase 'V' as the argument, I assume this was a typo. (no idea if the rest will work or not, I only scanned through your email...)

darren


On Dec 8, 2008, at 2:21 PM, Filip van der Meeren wrote:

Good evening (for my region),

I am currently working on a small project to manage the different builds of perl and its modules. Since it is such a hassle to find/ install PerlModules and newer builds of Perl itself.

I am trying to retrieve all paths that perl uses to retrieve modules.
I found the command: "perl -v". I know how to parse this, but how do I get it inside my Cocoa application?


I have tried to following:

NSTask *task = [[[NSTask alloc] init] autorelease];
	[task setLaunchPath:@"/System/Library/Perl/5.8.8"];
	[task setArguments:[NSArray arrayWithObject:@"-v"]];
	[task launch];
	[task waitUntilExit];

But it seems to get the same exception every time I try this, even in different configs.

2008-12-08 23:15:11.459 PerlManager[924:203] *** NSTask: Task create for path '/System/Library/Perl/5.8.8' failed: 13, "Permission denied". Terminating temporary process.

Any ideas on how to fix my problem ?

Thank you,

Filip van der Meeren
email@hidden
http://www.sourceforge.net/projects/perlmanager


_______________________________________________

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


References: 
 >NSTask (From: Filip van der Meeren <email@hidden>)
 >Re: NSTask (From: Darren Adkinson <email@hidden>)

  • Prev by Date: Re: NSTask
  • Next by Date: Re: NSTask
  • Previous by thread: Re: NSTask
  • Next by thread: Re: NSTask
  • Index(es):
    • Date
    • Thread