HI
I have the following requirement
I have a script a.sh which will deploy files in multiple servers .The argument for the a.sh is abc.gz host1.conf
where abc.gz is a zip file and one.conf will contain all the database connection string .
Now I have to write a b.sh which will call a.sh internally but the argument to the b.sh are three remote hosts
Now the host.conf will have the ip address ,so that b.sh will be executed on the that host after connection through ssh inside the bash shell script .
Please help me on this .
I have the following requirement
I have a script a.sh which will deploy files in multiple servers .The argument for the a.sh is abc.gz host1.conf
where abc.gz is a zip file and one.conf will contain all the database connection string .
Now I have to write a b.sh which will call a.sh internally but the argument to the b.sh are three remote hosts
Code:
b.sh <host1.conf> <host2.conf> <host3.conf>
Please help me on this .