PROBLEMI CON EXPORT DEI PATH
Inviato: mar 24 mag 2005, 16:55
Salve a tutti raga , ho un bruttissimo problema , vorrei semplicemente
<BR>creare una variabile d´ambiente JAVA_HOME impsotata ad un qualcosa . Ho
<BR>scritto nel .bash_profile , ma non so perhce non mi funziona , qualcuno
<BR>mi potrebbe dire come mai , è possibile che lo script .bash_profile non
<BR>venga eseguito? Di seguito vi allego il file bas_profile :<br />
<BR># ~/.bash_profile: executed by bash(1) for login shells.<br />
<BR># see /usr/share/doc/bash/examples/startup-files for examples.<br />
<BR># the files are located in the bash-doc package.<br />
<BR><br />
<BR># the default umask is set in /etc/login.defs<br />
<BR>#umask 022<br />
<BR><br />
<BR># include .bashrc if it exists<br />
<BR>if [ -f ~/.bashrc ]; then<br />
<BR> . ~/.bashrc<br />
<BR>fi<br />
<BR><br />
<BR># the rest of this file is commented out.<br />
<BR><br />
<BR># set PATH so it includes user´s private bin if it exists<br />
<BR>#if [ -d ~/bin ] ; then<br />
<BR># PATH=~/bin:"${PATH}"<br />
<BR>#fi<br />
<BR><br />
<BR># do the same with MANPATH<br />
<BR>#if [ -d ~/man ]; then<br />
<BR># MANPATH=~/man${MANPATH:-:}<br />
<BR># export MANPATH<br />
<BR>#fi<br />
<BR><br />
<BR>export JAVA_HOME="/home/xdeb"<br />
<BR><br />
<BR>se questo stesso comando lo faccio da shell mi funziona.<br />
<BR>Grazie<br />
<BR><br /><br>
<BR>creare una variabile d´ambiente JAVA_HOME impsotata ad un qualcosa . Ho
<BR>scritto nel .bash_profile , ma non so perhce non mi funziona , qualcuno
<BR>mi potrebbe dire come mai , è possibile che lo script .bash_profile non
<BR>venga eseguito? Di seguito vi allego il file bas_profile :<br />
<BR># ~/.bash_profile: executed by bash(1) for login shells.<br />
<BR># see /usr/share/doc/bash/examples/startup-files for examples.<br />
<BR># the files are located in the bash-doc package.<br />
<BR><br />
<BR># the default umask is set in /etc/login.defs<br />
<BR>#umask 022<br />
<BR><br />
<BR># include .bashrc if it exists<br />
<BR>if [ -f ~/.bashrc ]; then<br />
<BR> . ~/.bashrc<br />
<BR>fi<br />
<BR><br />
<BR># the rest of this file is commented out.<br />
<BR><br />
<BR># set PATH so it includes user´s private bin if it exists<br />
<BR>#if [ -d ~/bin ] ; then<br />
<BR># PATH=~/bin:"${PATH}"<br />
<BR>#fi<br />
<BR><br />
<BR># do the same with MANPATH<br />
<BR>#if [ -d ~/man ]; then<br />
<BR># MANPATH=~/man${MANPATH:-:}<br />
<BR># export MANPATH<br />
<BR>#fi<br />
<BR><br />
<BR>export JAVA_HOME="/home/xdeb"<br />
<BR><br />
<BR>se questo stesso comando lo faccio da shell mi funziona.<br />
<BR>Grazie<br />
<BR><br /><br>