Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

.bash_profile is not being executed

Posted on 2007-04-10
1
497 Views
Last Modified: 2013-12-06
The .bash_profile is not being executed when we are invoking the bash profile.

To execute this shell script I have to specifically run

. .bash_profile

Then only the commands in .bash_profile is being executed.
How to make .bash_profile to be executed when we call the bash shell?


OS: Red Hat Enter PRise linux Advanced Server4
0
Comment
Question by:durgap
1 Comment
 
LVL 58

Accepted Solution

by:
amit_g earned 500 total points
ID: 18884191
~/.bash_profile is executed only if the shell is a login shell i.e. when you log in or bash is invoked with --login option. Also it should be in the HOME directory. When is it not executed?
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question