欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

pscp.pssh的使用

程序员文章站 2022-05-30 13:14:15
...

pscp.pssh的使用

将本地文件批量复制到远程主机上

#-r 递归  -v显示过程  源--目标
[[email protected] ~]# pscp.pssh -rv -h /root/iplist  /root/test/ /mnt
[1] 16:57:01 [SUCCESS] [email protected]
[2] 16:57:11 [SUCCESS] [email protected]
[3] 16:57:11 [SUCCESS] [email protected]
[[email protected] ~]# pssh -h /root/iplist -i 'ls /mnt'
[1] 16:57:28 [SUCCESS] [email protected]
hgfs
test
[2] 16:57:28 [SUCCESS] [email protected]
test
[3] 16:57:28 [SUCCESS] [email protected]
test

相关标签: OPERATION pssh