运维网's Archiver
论坛
›
Shell/Powershell
› shell 脚本远程复制文件
xiguaqq20
发表于 2018-8-27 08:03:34
shell 脚本远程复制文件
!/bin/bash
#vim ip.txt server ip
ip_array=$(cat /tmp/ip.txt)
for ip in ${ip_array
[*]}
do
scp -P6122 /tmp/test.shroot@$ip:/tmp/
done
页:
[1]
查看完整版本:
shell 脚本远程复制文件