Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

TomCat from WHM & 3 of the same entries to the beginning AND end of $PATH WTF?

Discussion in 'General Discussion' started by AbeFroman, Sep 25, 2004.

  1. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    318
    Did this happen to anyone else?
    root@100 [/etc]# cat bashrc | grep \ PATH=
    export PATH=$JAVA_HOME/bin:$PATH
    export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin"
    export PATH=$JAVA_HOME/bin:$PATH
    export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin"
    export PATH=$JAVA_HOME/bin:$PATH
    export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin"
    root@100 [/etc]# echo $PATH
    /usr/local/jdk/bin:/usr/local/jdk/bin:/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
    root@100 [/etc]# cat bashrc
    # /etc/bashrc

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

    # For some unknown reason bash refuses to inherit
    # PS1 in some circumstances that I can't figure out.
    # Putting PS1 here ensures that it gets loaded every time.
    alias which="type -path"
    export EDITOR="pico"
    export VISUAL="pico"
    PS1="\u@\h [\w]# "

    whoami=`whoami`
    if [ -e "~/.dns" ]; then
    DNS=`cat ~/.dns`
    PS1="\u@$DNS [\w]# "
    else
    if [ -e "/var/cpanel/users/$whoami" ]; then
    eval `grep DNS= /var/cpanel/users/$whoami`

    if [ ! "$DNS" = "" ]; then
    echo -n "$DNS" > ~/.dns
    PS1="\u@$DNS [\w]# "
    fi
    fi
    fi

    if [ ! -e ~/public_html/cgi-bin ]; then
    mkdir -p ~/public_html/cgi-bin
    fi
    if [ ! -e ~/public_ftp ]; then
    mkdir -p ~/public_ftp
    fi

    mesg y

    alias wtf="watch -n 1 w -hs"
    alias wth="ps -uxa | more"
    # Now for the dos users
    alias dir="ls"
    alias copy="cp"
    alias del="rm"
    alias deltree="rm -r"
    alias move="mv"
    alias ff="whereis"
    alias attrib="chmod"
    alias edit="pico"
    alias chdir="cd"
    alias mem="top"
    alias search="grep"
    alias pico="pico -w -z"


    LS_OPTIONS='--color=tty -F -a -b -T 0';
    export LS_OPTIONS;
    alias ls='/bin/ls $LS_OPTIONS';
    alias dir='/bin/ls $LS_OPTIONS --format=vertical';
    alias vdir='/bin/ls $LS_OPTIONS --format=long';
    alias d=dir;
    alias v=vdir;
    eval `dircolors -b`


    export JAVA_HOME=/usr/local/jdk
    export PATH=$JAVA_HOME/bin:$PATH
    export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
    export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin"

    export JAVA_HOME=/usr/local/jdk
    export PATH=$JAVA_HOME/bin:$PATH
    export XML=$JAVA_HOME/lib
    export SSL=$JAVA_HOME/lib
    export JAVAMYSQL=$JAVA_HOME/lib
    export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
    export JAKARTA_HOME=/usr/local/jakarta
    for file in $JAKARTA_HOME/lib/*
    do
    export CLASSPATH="$CLASSPATH:$file"
    done
    export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin"
    export TOMCAT_HOME=$JAKARTA_HOME/build/tomcat
    export CATALINA_HOME=/usr/local/jakarta/jakarta-tomcat-4.1.12-src/build
    export JAVA_HOME=/usr/local/jdk
    export PATH=$JAVA_HOME/bin:$PATH
    export XML=$JAVA_HOME/lib
    export SSL=$JAVA_HOME/lib
    export JAVAMYSQL=$JAVA_HOME/lib
    export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
    export JAKARTA_HOME=/usr/local/jakarta
    for file in $JAKARTA_HOME/lib/*
    do
    export CLASSPATH="$CLASSPATH:$file"
    done
    export PATH="$PATH:/usr/local/bin:/usr/X11R6/bin"
    export TOMCAT_HOME=$JAKARTA_HOME/build/tomcat
    export CATALINA_HOME=/usr/local/jakarta/jakarta-tomcat-4.1.12-src/build
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice