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

Re: LSEnvironment


  • Subject: Re: LSEnvironment
  • From: Greg Guerin <email@hidden>
  • Date: Tue, 28 Nov 2006 10:37:56 -0700

Dieter Oberkofler wrote:

>All I'm trying to do is to prepare a Oracle based application to be
>packaged for client installation and a set of environment variables must be
>set for Oracle to be working. To make it easy to install (I did not find
>any simple way to automatically set the environment in the
>environment.plist file) i would like to set them in the application bundle
>itself. If there is another way to do this, I would also be happy to follow
>a new lead on how to solve my problem.

If nothing else works, try using setenv() before any Oracle-based code
executes.

Write your main() to call setenv() for all the env-vars the Oracle app
needs.  Then call the Oracle app's entry point.  Conceptually, something
like this:

  main( argc, argv )
  {
    setenv(..one value here..);
    setenv(..another value here..);
    ..repeat above as needed..

    oracle_app_main( argc, argv );
  }

If you wanted, you could read a series of var=value lines from a bundled
file, calling setenv() in a loop.  The only reason to prefer that over
hard-coding the values into the code is configurability.  It's easier to
change a data file than to recompile a C source file.

On the other hand, you might not want such ease of configurability, if the
env-vars are intentionally configured for a particular client or customer,
and you intentionally want to make it difficult to alter the values.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Removing documentation for Java and WebObjects from the search index
  • Next by Date: Re: Re: Removing documentation for Java and WebObjects from the search index
  • Previous by thread: Re: LSEnvironment
  • Next by thread: GDB: Timed out fetching data
  • Index(es):
    • Date
    • Thread