码迷,mamicode.com
首页 > 系统相关 > 详细

shell 脚本远程复制文件

时间:2016-12-20 12:00:28      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:shell

!/bin/bash
#vim ip.txt server ip
ip_array=$(cat /tmp/ip.txt)
for ip in ${ip_array[*]}
do
scp -P6122 /tmp/test.sh  root@$ip:/tmp/
done


本文出自 “汜水流年_” 博客,请务必保留此出处http://timefiles.blog.51cto.com/8475652/1884167

shell 脚本远程复制文件

标签:shell

原文地址:http://timefiles.blog.51cto.com/8475652/1884167

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!