我有几TB的数据由工具处理.工具的输出应同时发送到另外两台机器(同时,因为工具运行时出现停机时间,我想限制停机时间).
如果我只是从一台机器管道,那么很容易:
tool terabyte.txt | ssh user@1.2.3.4 /sbin/process-input
但是如何同时将数据发送到多台机器?
如果情况涉及其他软件或脚本,我不介意.它不一定是一个“纯粹的ssh”解决方案.
解决方法
你可以试试
ClutterSSH:
With ClusteRSSH it is possible to make a SSH connection to multiple servers or machines to perform tasks from one single command window,without any scripting. The ‘cssh’ command lets you connect to any server specified as a command line argument,or to groups of servers (or cluster nodes) defined in a configuration file.