execute local script on remote machines with pssh
Scenario
目标命令中含有特殊符号,导致
pssh
批量执行可能出问题,此时可以考虑使用脚本和重定向方式来远程执行。
Usage
pssh -h RemoteHosts.ip -P -I < ~/LocalScript.sh
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here