have setup a master / local server combination using OpenSSH. My local server depends upon master server for a remote sourcing. The remote sourcing should set a large number of variables locally in a bash shell script. The code is:
user@slave $ source ssh user@master "/service/dyn.master.setenv.sh --mode=slave"
The var is not setting and I am getting various errors. How can I do a remote "source" of a bash script file (from master.example.com) and set a shell variable locally at slave.example.com?
How do I pass shell variables to awk command or script under UNIX like operating systems?