码迷,mamicode.com
首页 >  
搜索关键字:linux系统批量修改密码 expect ssh免交互    ( 1280个结果
[转]expect实现ssh自动交互
shell脚本实现ssh自动登录远程服务器示例: #!/usr/bin/expect spawn ssh root@192.168.22.194 expect "*password:" send "123\r" expect "*#" interact 原文链接:http://www.xuanhao ...
分类:其他好文   时间:2017-01-20 11:07:10    阅读次数:195
JSZip
/*! JSZip - A Javascript class for generating and reading zip files<http://stuartk.com/jszip> (c) 2009-2014 Stuart Knightley <stuart [at] stuartk.com> ...
分类:Web程序   时间:2017-01-19 16:58:25    阅读次数:297
expect脚本免密码
1 #!/usr/bin/expect 2 set timeout 10 3 spawn ssh root@20.0.102.19 4 expect "password:" 5 send "123456\n" 6 interact 1 #!/usr/bin/expect 2 set timeout ... ...
分类:其他好文   时间:2017-01-16 21:22:19    阅读次数:159
适配器模式
适配器模式的定义 适配器模式(Adapter Pattern)的定义如下: Convert the interface of a class into another interface clients expect.Adapter lets classes work together that c ...
分类:其他好文   时间:2017-01-14 07:21:37    阅读次数:194
.net工具类
ConvertHelper public class ConvertHelper { /// <summary> /// 转换类型 /// </summary> /// <typeparam name="T">要转换的类型,可以为Nullable的泛型</typeparam> /// <param ...
分类:Web程序   时间:2017-01-06 14:06:05    阅读次数:225
expect基本使用方法
参考: http://www.cnblogs.com/lzrabbit/p/4298794.html expect是linux系统中可以和子进程进行交互的一个命令,使用它可以做一些自动化工作。python中也有一个模块pexpect,提供了类似的功能。 例如:使用ssh登陆需要输入密码,可以使用ex ...
分类:其他好文   时间:2017-01-05 21:45:40    阅读次数:528
linux tcl expect 安装(转)
linux tcl expect 安装 一、Tcl安装 1、 下载:tcl8.4.20-src.tar.gz http://www.tcl.tk/software/tcltk/downloadnow84.tml 2、解压缩源码包 tar xfvz tcl8.4.20-src.tar.gz 3、安装配 ...
分类:系统相关   时间:2017-01-05 18:21:10    阅读次数:246
linux expect命令使用入门
expect的核心是spawn expect send set spawn:spawn是进入expect环境后才可以执行的expect内部命令,相当于shell中的内置命令,通过它,调用需要执行的命令 expect:捕获提示 send:发送交互值(结尾需要加上\n) set:设置变量 interac ...
分类:系统相关   时间:2017-01-04 22:56:42    阅读次数:299
Click Models for Web Search(2) - Parameter Estimation
在Click Model中进行参数预估的方法有两种:最大似然(MLE)和期望最大(EM)。至于每个click model使用哪种参数预估的方法取决于此model中的随机变量的特性。如果model中的随机变量都是可以observed,那么无疑使用MLE,而如果model中含有某些hidden vari ...
分类:Web程序   时间:2017-01-01 23:55:00    阅读次数:407
expect脚本自动化执行线上服务器命令
这个expect脚本是为了获取线上服务器的容量大小,并无实际意义#!/usr/bin/expectsettimeout60#设置超时setuser[lindex$argv0]#设置第一个参数setpassword[lindex$argv1]setipaddr[lindex$argv2]setport[lindex$argv3]setmypassword[lindex$argv4]spawnssh$user@$ipaddr-p$port#..
分类:其他好文   时间:2016-12-30 22:25:09    阅读次数:189
1280条   上一页 1 ... 86 87 88 89 90 ... 128 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!