How do I run a script on multiple Linux servers?

Trần Vũ

New member
How do I run a script on multiple Linux servers?
Answer
To run commands on multiple servers, add the servers to a hosts file as explained before. Then run pdsh as shown; the flag -w is used to specify the hosts file, and -R is used to specify the remote command module (available remote command modules include ssh, rsh, exec, the default is rsh).
 

Tìm kiếm

Back
Top