I 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"
echo “$var”
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?
[continue reading…]
How do I add my RSA or DSA keyfile in shell script itself for the connection so that I need to carry only one file on my USB pen drive instead of $HOME/.ssh/id_rsa file under Unix / Linux operating systems?
[continue reading…]
How do I install memcached server under Red Hat Enterprise Linux or CentOS Linux version6.x server running on IBM hardware to cache query for my php/perl/python based apps?
[continue reading…]
How do I shutdown remote Linux or UNIX system from MS-Windows system?
[continue reading…]
How do I use mysqldump command with Unix shell pipes?
[continue reading…]
How do I find out my RHEL (Red Hat Enterprise Linux) 6 Linux kernel version number running on HP server? How can I get RHEL 6 kernel version? How do you find out a CentOS 6 kernel version using the CLI?
[continue reading…]
How do I install iptables under Redhat (RHEL) or CentOS or Fedora Linux operating systems?
[continue reading…]