Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
In Terminal ,
/root/.bash_profile: line 14: syntax error: unexpected end of file . I checked my .Bash_profile . No Modification I made in the File. I am new to CentOS and i Completely New to Linux. Can Anyone help me to Solve the Problem
This is the .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
and My /etc/profile is# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrcpathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|$1($|" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fipathmunge /usr/X11R6/bin after
pathmunge /home/dmadmin/oracle/product/10.2.0/db_2/bin
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"HOSTNAME=`/bin/hostname`
HISTSIZE=1000ORACLE_HOME=/home/dmadmin/oracle/product/10.2.0/db_2; export ORACLE_HOME
lIBPATH=$ORACLE_HOME/lib;$LIBPATH; export LIBPATH
ORACLE_SID=orcl; export ORACLE_SID
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fiexport PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
doneunset i
unset pathmungeCan Anyone Help me ?
Thanks and regards
Madhu

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
This is the /root/.bash_profile file that I have in Centos the only difference I see is the last line,,, unset USERNAMEthe /etc/profile is
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrcpathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}# ksh workaround
if [ -z "$EUID" -a -x /usr/bin/id ]; then
EUID=`id -u`
UID=`id -ru`
fi# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi# No core files by default
ulimit -S -c 0 > /dev/null 2>&1if [ -x /usr/bin/id ]; then
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fiHOSTNAME=`/bin/hostname`
HISTSIZE=1000if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fiexport PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
doneunset i
unset pathmunge
It would appear to me that something in the Oracle DB has modified something somewhere,,,,MSI 845e mb 1 gb ram and a p4 2.4n running fedora 7 xp ,win 2000 advanced server and win 98 SE alot to learn and I know so little !!!!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |