Computing.Net > Forums > Linux > -bash: /root/.bash_profile: line 11

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

-bash: /root/.bash_profile: line 11

Reply to Message Icon

Name: yeapmadhu
Date: August 28, 2008 at 23:46:19 Pacific
OS: CentOS
CPU/Ram: Pentium 15 GB
Product: sdfsd
Comment:

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/bashrc

pathmunge () {
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
fi

pathmunge /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>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

ORACLE_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
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i
unset pathmunge

Can Anyone Help me ?

Thanks and regards
Madhu



Sponsored Link
Ads by Google

Response Number 1
Name: quacked
Date: September 27, 2008 at 11:05:54 Pacific
Reply:

# .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 USERNAME

the /etc/profile is

# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
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>&1

if [ -x /usr/bin/id ]; then
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fi

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset 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 !!!!


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: -bash: /root/.bash_profile: line 11

what to do at the root command? www.computing.net/answers/linux/what-to-do-at-the-root-command/12010.html

How to auto start an app? www.computing.net/answers/linux/how-to-auto-start-an-app/15945.html

syntax error: unexpected end of file www.computing.net/answers/linux/syntax-error-unexpected-end-of-file/9663.html