Re: [NSProcessInfo processInfo] environment] only can see my session's env variables via the debugger.
Re: [NSProcessInfo processInfo] environment] only can see my session's env variables via the debugger.
- Subject: Re: [NSProcessInfo processInfo] environment] only can see my session's env variables via the debugger.
- From: "Frederick C. Lee" <email@hidden>
- Date: Fri, 12 May 2006 11:30:43 -0700
I can see that either:
1) I must explicitly set my LaunchServices environment or
2) Launch a NSTask to check the User's shell environment.
Here's my target scenario:
I want to access an Oracle instance that is dependent on Oracle
environment variables such as
ORACLE_BASE, ORACLE_HOME and ORACLE_SID.
I have an Oracle DB (10g) session running on my OS X.
Eventually I want to be able to have a ObjC/Cocoa program access my
Oracle tables via OCI/libraries.
So that means that I need access to the ORACLE env variables.
I want to have the Cocoa project be able to passively access the
user's environment without the extra set up;
hence, I'm thinking of launching a NSTask to grab the necessary env
variables to work with.
In sort, install the Cocoa project, launch it... then glean the
necessary environment(s) for the information
to link with the Oracle session.
Regards,
Ric.
On May 12, 2006, at 10:21 AM, j o a r wrote:
On 12 maj 2006, at 19.17, Chris Parker wrote:
So my question is, how can I collect all the environment
variables that I had set within my shell's signon file(s)?
When the Finder (really LaunchServices, but close enough) launches
your process, it does not source any of your shell initialization/
login/configuration files.
Technical Q&A 1067 to the rescue!
<http://developer.apple.com/qa/qa2001/qa1067.html>
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden