August 18, 2017

How to load environment variables on remote host

Hi All,

I am trying to bring up my application services by doing an SSH to remote host and running the application service startup script.

Though services are getting started, application isn't working as expected.

Upon analysing the startup script, came to know that the script dumps the env output to a file and reads it to bring up the processes. Number of environment variables being written to a file (when SSH is done) is not same as when ran at the terminal (interactive shell)

Could someone let me know how can I address this issue as I need to start the services by running the startup script via SSH. 

Thanks and Regards



Answer to the question

There are many types of Linux enviroment variables. You can check this article to know System Environment Variables Paths

Linux environment variables​




Like  (0 likes)
Click Here!