G'day Andrew,
Yeah, I think I can probably see it.
In your /etc/bashrc you have a line near the bottom:

"PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/share/pvm3/".

If I'm right, thats your prob.

Change to
PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/share/pvm3/

In my previous response I was going to mention that if PATH was being
clobbered, the culprit might be identifiable from your existing PATH
ie the pvm3.

It seems to bear this out.

And don't forget to clobber the person that put that line in :D

Cheers,
Daniel.

On 29/09/06, Andrew Dunkin <[EMAIL PROTECTED]> wrote:
Daniel,
Thanks. Still no success, but here is the latest.

# HERE IS MY ORIGINAL .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
unset USERNAME
#########################################

#########################################
# I THEN EDITED .bash_profile AS FOLLOWS,  LOGGED OUT & IN;
#
# .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
export PATH=$PATH:/usr/java/j2sdk1.4.2_07/bin/

## THIS DID NOT WORK. JAVA COMMANDS NOT FOUND.
##################################################

##################################################

## SO I EDITED IT AS FOLLOWS, LOGGED OUT & IN;

# .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=$PATH:/usr/java/j2sdk1.4.2_07/bin/
unset USERNAME

## THIS DID NOT WORK.  JAVA COMMANDS NOT FOUND.
#################################################

################################################
## I THEN EDITED IT AS FOLLOWS, LOGGED OUT & IN;
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.2_07/bin/

export PATH
unset USERNAME
## THIS DID NOT WORK EITHER. JAVA COMMANDS NOT FOUND.
#########################################################

#########################################################
Below are my original files;
/home/<user>/.bash_profile
/home/<user>/.bashrc
/etc/bashrc
/etc/profile

Can you see anywhere where the PATH is being reset in any of these?
I am not quite sure how to interpret the contents of these files.
Can you think of any other edits that may work?
#########################################################
# .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
########################################################

#########################################################
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
   . /etc/bashrc
fi
#######################################################


#########################################################
# /etc/bashrc

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# by default, we want this to get set.
# Even for non-interactive, non-login shells.
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
   umask 002
else
   umask 022
fi

# are we an interactive shell?
if [ "$PS1" ]; then
   case $TERM in
   xterm*)
       PROMPT_COMMAND='echo -ne "\033]0;[EMAIL PROTECTED]:
${PWD}\007"'
       ;;
   *)
       ;;
   esac
   [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[EMAIL PROTECTED] \W]\\$ "

   if [ -z "$loginsh" ]; then # We're not a login shell
       for i in /etc/profile.d/*.sh; do
       if [ -x $i ]; then
           . $i
       fi
   done
   fi
fi

unset loginsh
# PVM environement
export PVM_RSH=/usr/bin/rsh
export PVM_ROOT=/usr/share/pvm3
export PVMD_NOHOLD=ON
export PVM_TMP=/var/run/pvm3
export XPVM_ROOT=/usr/X11R6/lib/xpvm/
export
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/share/pvm3/
##########################################################

#########################################################

# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah <[EMAIL PROTECTED]>

loginsh=1

# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1

if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
   PATH="$PATH:/usr/X11R6/bin"
fi

if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
   export PATH=$PATH:/usr/games
fi

umask 022

USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000

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

# some old programs still use it (eg: "man"), and it is also
# required for level1 compliance for LI18NUX2000
NLSPATH=/usr/share/locale/%l/%N

export PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH
export HISTCONTROL HISTSIZE

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

unset i
#########################################################
#########################################################
######################################################END

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to