Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-27-2010, 12:08 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2008
Location: Central FL
Posts: 21
Rep:
|
sourcing .bashrc
I have two versions of the hidden file .bashrc: one is stored in my home directory, one is stored in a subdirectory called ACE_50021. When I open a terminal window, I tried to enter the command "source .bashrc" which yields an error statement:
"bash: /home/username/ACE_410/Exer_env.sh: No such file or directory"
Why is this happening? I don't have the ACE_410 directory referenced, nor do I see it in my directory paths. Please advise ASAP as I am stuck. Thanks.

|
|
|
|
08-27-2010, 12:17 PM
|
#2
|
|
Member
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, redhat
Posts: 138
Rep:
|
Is /home/username/ACE_50021 in your path? Per tha man page:
If filename does not contain a slash, file names in PATH are used to find the directory contain-
ing filename. The file searched for in PATH need not be executable. When bash is not in posix mode, the current direc-
tory is searched if no file is found in PATH.
Or you're in the /home/username/ACE_50021 dir, it's NOT in your path, and there's no other .bashrc in your path, and you're not running in posix mode. I assume /home/username is NOT in your path.
Last edited by suprstar; 08-27-2010 at 12:19 PM.
|
|
|
|
08-27-2010, 12:19 PM
|
#3
|
|
Member
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704
Rep:
|
This shows you have defined /home/username/ACE_410/Exer_env.sh path in .bashrc file, which does not exist.
Can you paste contents of both .bashrc files ?
|
|
|
|
08-27-2010, 12:27 PM
|
#4
|
|
LQ Newbie
Registered: Oct 2008
Location: Central FL
Posts: 21
Original Poster
Rep:
|
Quote:
Originally Posted by vinaytp
This shows you have defined /home/username/ACE_410/Exer_env.sh path in .bashrc file, which does not exist.
Can you paste contents of both .bashrc files ?
|
Unfortunately, I have a VM can in which I connect to a Linux session via NoMachine, but the connection is failing, so I cannot access any of my .bashrc files. My sys admin is reconfiguring the server to which I was connected, so I'll try again once he is finished. Thanks.
|
|
|
|
08-27-2010, 12:44 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2008
Location: Central FL
Posts: 21
Original Poster
Rep:
|
This is what my .bashrc file looks like:
export ATIHOME="/home/acecsi/ACE_CSI_5_0_0_2_1"
source /home/acecsi/ACE_CSI_5_0_0_2_1/ATI_env.sh
echo 'ATIHOME is '
echo $ATIHOME
export HOME=$ATIHOME #To make netscape bookmarks work.
export IMCN_HOME=${ATIHOME}/imcn
export ANT_HOME=${ATIHOME}/imcn/ant
#PLEASE SET THE EXERCISE VARIABLE
export EXERCISE=t50021
#source ${ATIHOME}/EXER_env.sh
if [ -f ${IMCN_HOME}/env/IMCN_env ]; then
source ${IMCN_HOME}/env/IMCN_env
fi
export PS1='[\h:\w] '
#
alias dirs='ls -al | grep \/'
alias h='history'
alias mv='mv -i'
alias rm='rm -i'
alias cp='cp -i'
alias mvf='/usr/bin/mv -f'
alias rmf='/bin/rm -f'
alias cpf='/usr/bin/cp'
alias dir='ls -al'
alias copy='cp'
alias type='more'
alias ls='ls -CF'
alias md='mkdir'
alias rd='rmdir'
alias help='man'
alias l='ls -al'
alias rgrep='find . -type f -print | xargs grep'
alias oracle_count='ps -ef | grep oracleATI | wc -l'
When I do the 'source .bashrc' command, I receive the following:
ATIHOME is
/home/acecsi/ACE_CSI_4_1_0
In other words, the wrong directory is referenced. Please advise.
|
|
|
|
08-27-2010, 12:56 PM
|
#6
|
|
LQ Newbie
Registered: Oct 2008
Location: Central FL
Posts: 21
Original Poster
Rep:
|
Never mind. I had a software developer point me to the ATI_env.sh script file that is referenced in the .bashrc. This file directs the environment variables to the 4_1_0 path rather than the 5_0_0_2_1 path as expected.
Thanks for your help everyone, and please pass this info to anyone else who happens to experience this type of issue with .bashrc. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:49 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|