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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -