Hi,
This is the first time I need to write a script, so I desparately need your help folks!
Well, I need to run a set of commands in a set of servers. That is:
I need to run:
{
command 1
command 2
command 3
}
on all servers:
{
server 1
server 2
.....
server 6
}
and then after 10 secs
run
command 4 concurrently on all 6 servers
in order to get statistics of the execution of command 3
I've seen something about 'rsh' command in Unix but it accepts only one command as argument at a time.This means that I'll have to use 3 times the rsh command for every server and that will happen 6 times (6 servers).
Is there any chance of actually executing command 4 concurrently at all 6 servers (or at least with little latency)?
thanks,
George
This is the first time I need to write a script, so I desparately need your help folks!
Well, I need to run a set of commands in a set of servers. That is:
I need to run:
{
command 1
command 2
command 3
}
on all servers:
{
server 1
server 2
.....
server 6
}
and then after 10 secs
run
command 4 concurrently on all 6 servers
in order to get statistics of the execution of command 3
I've seen something about 'rsh' command in Unix but it accepts only one command as argument at a time.This means that I'll have to use 3 times the rsh command for every server and that will happen 6 times (6 servers).
Is there any chance of actually executing command 4 concurrently at all 6 servers (or at least with little latency)?
thanks,
George