Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mandrake 9.0 seems not to be executing my commands in .bash_profile if I log automatically after booting. But it does it if I log manually. Any ideas?
Thanks.
I know the " are not necessay. When executed from the shell (bash) the previous commands are working. When I logged out and log in again it is ok. However when I (re)boot it is not. I have set automatic login.
What dou you think?
I know the " are not necessay. When executed from the shell (bash) the previous commands are working. When I logged out and log in again it is ok. However when I (re)boot it is not. I have set automatic login.
What dou you think?
Sorry to disagree... I'm watching at it RIGH now... .bashrc works on mandrake 9.0. Obviously the .bash_profile is loaded after .bashrc and it overwrites .bashrc.
The Sair Linux and GNU certification, Level 1: System Administration book says:
Quote:
The difference between the .bashrc and the profile files is that .bashrc is used for interactive shells, ehre profile in used strictly for login shells. Thus, when you log in, .bashrc is read, then profile is read. If you were to switch to bash shell for example, then the bashrc file alone would be in use.
And I'm seeing it right now in my home direcotry a beautiful file called .bashrc
I'll ask again, Can't it be done using .bashrc instead of .bash_profile?
It can be done in either, the first lines of the .bash_profile should be an if statement that checkes if the .bashrc exists and then exicutes it, and then continues on in the .bash_profile
However, i have noticed a similar thing when exporting Oracle related variables, specifically the ORACLE_SID, where on Red Hat and TurboLinux, the oracle_sid never got set unless it was exported in the .bashrc
Technically, yes these things should be put into the .bashrc, however because its called from the .bash_profile who cares where you put it
Originally posted by Ciccio Sorry to disagree... I'm watching at it RIGH now... .bashrc works on mandrake 9.0. Obviously the .bash_profile is loaded after .bashrc and it overwrites .bashrc.
The Sair Linux and GNU certification, Level 1: System Administration book says:
And I'm seeing it right now in my home direcotry a beautiful file called .bashrc
I'll ask again, Can't it be done using .bashrc instead of .bash_profile?
Save teh penguin
Of course they is no problem, I did not said "ONLY".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.