Find the answer to your Linux question:
Results 1 to 3 of 3
Hello everbody, How da hell i run a .env file to set my envoriment variables, the goal is to have 2 diferent .env files in the home directory to run ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    2

    Running .env files


    Hello everbody,

    How da hell i run a .env file to set my envoriment variables, the goal is to have 2 diferent .env files in the home directory to run depending of the envoriment to work (im working in Oracle AS10g)

    I tried almost every solution that i find on my friend google and nothing works.

    Thank you all

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,754
    It depends upon whether you want to set the environment for a single command-line session, or for your entire login session (possibly GUI based). In either case, to execute an environment script that will persist after the script is run you need to use either the . (dot) command, or "source" command. Example:
    Code:
    source ~/env1.env
    # or
    . ~/env1.env
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Sep 2011
    Posts
    2
    So f*** simple Thanks a lot Rubberman

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •