linux - How can i do "source in" using shell script to set environment variable -


To set the environment variable, when I start working in my Linux workbook (using the command given below) I am sourcing in the environment /opt/kmc/pbs/env/1.1/etc/setup.env rev.52

while adding this line ( ". / Opt / kmc / pbs / env / 1.1 / etc / setup.env rev.52 ") in my shell script

It is not working, it gives some error I also have the nickname Even if it is not able to execute it.

  alias test = '/opt/kmc/pbs/env/1.1/etc/setup.env rev.52' test   

Then I ordered this How can I "source in" the script instead of giving it manually?

You can use the source command is:

  source / path / to / file   

And note, if you mention "some error", then we can not help a lot with that . Unless you are specifying what type of errors were there.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -