Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8669277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:26:05+00:00 2026-06-12T18:26:05+00:00

The Environment PATH is much larger in PROD as compared to QA: PATH=.:/home/imc:/home/imc/bin:$HOME:/usr/local/sbin:$PATH We

  • 0

The Environment PATH is much larger in PROD as compared to QA:

PATH=.:/home/imc:/home/imc/bin:$HOME:/usr/local/sbin:$PATH

We are using the same setup environment file in PROD and QA but we still find difference.

The longer path means it effects while running the job. So any idea how to improve the PATH?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:26:06+00:00Added an answer on June 12, 2026 at 6:26 pm

    Make sure both QA and PROD use the same assignment statement for PATH in their .bashrc and do not reference $PATH. That way you can guarantee the PATHs are identical, no matter what other startup files executed prior to .bashrc are used to modify PATH. E.g.

    # Assign a short and sweet PATH.
    PATH=$(/usr/bin/getconf PATH):$HOME/bin:/usr/local/sbin
    

    Note that placing . in a PATH is a boo-boo for security reasons. On another note, the number of directories in PATH is very likely not impacting speed of scripts. Bash keeps a hash of utility locations and lookup durations are not far from constant time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an environment variable pointing to the WiX bin directory path? I want
I'm using Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + \MyProgram As the path to store several files used by
What is the difference between using an environment variable, like PATH, as $PATH or
I have a script code in vb.net environment which is calling file from path
Environment I am using the native document management integration between Microsoft Dynamics CRM 2011
I'm driven crazy with this: Log.d(STATE, Environment.getExternalStorageState()); File f = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM), work_data); Log.d(PATH,
When running rails generate I get the following error: /usr/local/rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in require': no such file
Here I check the environment variable CLASSPATH daniel@daniel-laptop:~/ps/clojure/projects/ring-tutorial$ echo $CLASSPATH /home/daniel/ps/clojure/projects/ring-tutorial/src Here I check
Trying to get started using phpunit and can't get it installed/setup properly. When I
I have encounter a problem using gdb to debug vlc.exe in windows environment. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.