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

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

-bash: /root/.bash_profile: line 11

Reply to Message Icon

Original Message
Name: yeapmadhu
Date: August 28, 2008 at 23:46:19 Pacific
Subject: -bash: /root/.bash_profile: line 11
OS: CentOS
CPU/Ram: Pentium 15 GB
Model/Manufacturer: 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


Report Offensive Message For Removal


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

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


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: -bash: /root/.bash_profile: line 11

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 





Do you have a Desktop Computer anymore?

No
Yes, but only at work
Yes, but its rarely used
Yes, and its a workhorse


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software