shell script not executed -


I am trying to set environment variables in the shell script. The command "source .bashrc" is not executed. Unless you type the last line in the terminal, everything works fine what's wrong with my script? Thx

  echo "ExportLLSPPHH =. $ HOME / java / lib Export JAVA_HOME = $ HOME / Java Export PATH = .: $ PATH: $ JAVA_HOME / bin" & gt; & Gt; .bashrc source .bashrc  

source .bashrc Is executed, but it only affects the shell that is running your script, not its original shell, which is your interactive shell. To do your work, you will have to use source your script (or, y'now, . , which is less).


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -