Re: NSTask
Subject : Re: NSTask
From: Andrew Farmer <email@hidden >
Date: Mon, 8 Dec 2008 14:45:10 -0800
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Joqyx85dSJIYJSkcbcMZdHh6olwftCK6p4CSYg/JEgs=; b=jJvzdXYp4twmoSO58CZ1FixITgqvCbqgpmwCSu5k0CYljte7iLjZ4a2/+f/P2A5KU0 u6sCOxvkJKJy8NAa5HqeTCZoOHDT4PAd0BYJZz9W0a4LC/S1ro419fD/cpI2u+qRExAE 5xMq89WAcn1X2ah21h3RcGtNMJxD5H9C+Aat8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=qRDgE3w/gO1z/ub+oQbJje4NbIQ5vyWB6oMc3NS2Gy2JrfAd4aKMHtLgjPiB8fBYub XXc9GvWnasvHQepz1vLUkwB6L54O7qEOTNxrKPIPM+ANsGv7j/VcmP3bR/r+S+wKA3ek FIhlq1+7j0ajfG3rEenmkyuKkUZYD1IBbJNYc=
On 08 Dec 08, at 14:36, Darren Adkinson wrote:
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...
Or, better yet:
[task setArguments:[NSArray arrayWithObjects: @"-e", @"print join $/,
@INC", nil]];
You'll still need to read the input into a string, though... sending
it to the system console isn't much use.
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
References:
>NSTask (From: Filip van der Meeren <email@hidden>)
>Re: NSTask (From: Darren Adkinson <email@hidden>)
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.