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

shell脚本的分发,测试,查看

时间:2019-10-11 20:08:32      阅读:102      评论:0      收藏:0      [点我收藏+]

标签:ash   复制文件   测试   nbsp   cpu   文件   环境   bash   one   

#!/bin/bash

for i in {2..64}

do 

#远端复制文件或目录

rcp /test/cpuburn-in 10.1.1.$i:/test/

done

 

 

#!/bin/bash

for ((i=1;i<=32;i++))

do

#remote shell提供用户环境,也就是Shell,以便指令能够在指定的远端主机上执行。

rsh 10.1.1.$i “。。。“

done

 

#!/bin/sh

for((i=1;i<=22;i++))

do

rsh 10.1.1.$i  "...."

done

 

shell脚本的分发,测试,查看

标签:ash   复制文件   测试   nbsp   cpu   文件   环境   bash   one   

原文地址:https://www.cnblogs.com/huhuxixi/p/11656400.html

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