码迷,mamicode.com
首页 >  
搜索关键字:指定host和要同步的文件    ( 19个结果
七十四、expect脚本同步文件、expect脚本指定host和要同步的文件、构建文件分发系统、
expect脚本同步文件、expect脚本指定host和要同步的文件、构建文件分发系统、批量远程执行命令
分类:其他好文   时间:2018-08-01 00:22:45    阅读次数:177
expect脚本同步文件、指定host和要同步的文件、 构建文件分发系统及批量远程执行命令
一、expect脚本同步文件1、vi1.expect内容如下:#!/usr/bin/expectsetpasswd"123456"spawnrsync-avroot@192.168.1.31:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}"password:"{send"$passwd\r"}}expecteof#expecteof的作用是等待脚本中的命令
分类:其他好文   时间:2018-07-23 11:18:57    阅读次数:148
expect脚本同步文件 expect脚本指定host和要同步的文件 构建文件分发系统 批量远程执行
一、expect脚本同步文件实例4:自动同步文件[root@linux-01sbin]#vi4.expect#!/usr/bin/expectsetpasswd"123456"spawnrsync-avroot@192.168.238.130:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}&quo
分类:其他好文   时间:2018-07-23 10:57:09    阅读次数:182
expect脚本同步文件,expect脚本指定host和要同步的文件,构建文件分发系统,批量远程执行
expect脚本同步文件在一台机器上把文件同步到多台机器上自动同步文件[root@akuilinux01sbin]#vim4.expect#!/usr/bin/expectsetpasswd"s5381561"spawnrsync-avroot@192.168.21.129:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}"password:"{send"$
分类:其他好文   时间:2018-07-23 00:07:27    阅读次数:211
2018-7-20
20.31 expect脚本同步文件20.32 expect脚本指定host和要同步的文件20.33 构建文件分发系统20.34 批量远程执行命令20.31 expect脚本同步文件指定host和要同步的文件#!/usr/bin/expectset passwd "123456"set host [lindex $argv 0]set file [lindex $argv 1]
分类:其他好文   时间:2018-07-21 21:27:12    阅读次数:152
expect脚本同步文件,构建文件分发系统,批量远程执行命令
expect脚本同步文件自动同步文件#!/usr/bin/expectsetpasswd"123456"spawnrsync-avroot@192.168.133.132:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}"password:"{send"$passwd\r"}}expecteofexpect脚本指定host和要同步的文件指定host和要同步的
分类:其他好文   时间:2018-07-21 11:53:04    阅读次数:150
expect脚本同步文件、expect指定host和要同步的文件、构建文件分发系统、批量远程执行命令
                         一、expect脚本同步文件自动同步文件 ,把远程的文件同步到本机cd /usr/local/sbi
分类:其他好文   时间:2018-06-08 12:17:13    阅读次数:193
expect脚本同步文件,expect脚本指定host和要同步的文件,构建文件分发系统,批量远程执行
expect脚本同步文件自动同步文件#!/usr/bin/expectsetpasswd"目标机器密码"spawnrsync-avroot@目标机器ip:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}"password:"{send"$passwd\r"}}
分类:其他好文   时间:2018-06-08 00:42:56    阅读次数:158
20.31 expect脚本同步文件;20.32 expect脚本指定host和要同步的文件;
20.31 expect脚本同步文件;20.32 expect脚本指定host和要同步的文件;20.33 构建文件分发系统;20.34 批量远程执行命令20.31 expect脚本同步文件自动同步文件1. 同步远程机器hao2上/tmp/12.txt文件 到本机/tmp/下 :[root@hao-01 ~]# vim 4.expect添加内容:#!/usr/bin/expectset passwd
分类:其他好文   时间:2018-05-03 14:22:20    阅读次数:151
Shell项目之分发系统-expect(下)
[toc]五、自动同步文件5.1配置脚本核心命令,就是用的rsync服务。[root@xavilinux03sbin]#vim4.expect#!/usr/bin/expectsetpasswd"123456"spawnrsync-avroot@192.168.XXX.XXX:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}"password:"{send"
分类:系统相关   时间:2018-05-01 12:39:47    阅读次数:219
19条   1 2 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!