Re: Environment woes executing scripts from my OS X app
Re: Environment woes executing scripts from my OS X app
- Subject: Re: Environment woes executing scripts from my OS X app
- From: Peter <email@hidden>
- Date: Wed, 16 Dec 2015 14:16:25 +0100
Hm, maybe I’m getting this wrong but how about
NSTask
- (void)setEnvironment:(NSDictionary *)environmentDictionary
Am 16.12.2015 um 13:46 schrieb Maxthon Chan <email@hidden>:
> If you can call /usr/bin/env you can use that as an intermediary.
>
> Sent from my iPhone
>
>> On Dec 16, 2015, at 15:47, Rick Mann <email@hidden> wrote:
>>
>> I'm working on an OS X app that unfortunately has to call a series of bash and python scripts for part of the processing it does. I was able to include the scripts in my app's bundle, and invoke them there, but the environment is different when launched via my app than when launched on the command line. How can I best control the environment used when executing external scripts?
>>
>> --
>> Rick Mann
>> email@hidden
>>
>>
>>
>> _______________________________________________
>>
>> 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
> _______________________________________________
>
> 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
___ Peter Hartmann ________
mailto:email@hidden
___ Peter Hartmann ________
mailto:email@hidden
_______________________________________________
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