LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-27-2010, 12:08 PM   #1
jbottiger
LQ Newbie
 
Registered: Oct 2008
Location: Central FL
Posts: 21

Rep: Reputation: 0
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.

 
Old 08-27-2010, 12:17 PM   #2
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
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.
 
Old 08-27-2010, 12:19 PM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
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 ?
 
Old 08-27-2010, 12:27 PM   #4
jbottiger
LQ Newbie
 
Registered: Oct 2008
Location: Central FL
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vinaytp View Post
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.
 
Old 08-27-2010, 12:44 PM   #5
jbottiger
LQ Newbie
 
Registered: Oct 2008
Location: Central FL
Posts: 21

Original Poster
Rep: Reputation: 0
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.
 
Old 08-27-2010, 12:56 PM   #6
jbottiger
LQ Newbie
 
Registered: Oct 2008
Location: Central FL
Posts: 21

Original Poster
Rep: Reputation: 0
Cool

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.
 
  


Reply

Tags
bashrc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bashrc error, while sourcing linux_2010 Programming 3 07-13-2010 12:36 AM
.bashrc / .bash_profile /etc/profile /etc/bashrc deadeyes Red Hat 2 02-13-2010 11:22 AM
Setting path: /etc/profile, /etc/bashrc or ~/.bashrc Swakoo Linux - General 1 08-07-2007 10:59 PM
Sourcing .bashrc shifty_eyes Linux - Newbie 3 09-25-2005 09:43 PM
.bashrc error upon sourcing psiakr3w Linux - General 2 08-07-2004 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration