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 PROTECTED]
http://www.sourceforge.net/projects/perlmanager

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to