Solved

.bash_profile is not being executed

Posted on 2007-04-10
1
495 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 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