1 Star 0 Fork 11

大头 / mysqldiff

forked from hcxiong / mysqldiff 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ssh 310 Bytes
一键复制 编辑 原始数据 按行查看 历史
xionghc 提交于 2016-12-18 14:53 . no message
#!/usr/bin/expect
set timeout 30
set host1 [lindex $argv 0]
set host2 [lindex $argv 1]
set password [lindex $argv 2]
set port 22;
if {$argc == 4} {
set port [lindex $argv 3]
}
if {$port == "undefined"} {
set port 22
}
spawn ssh -f -N -L $host1 -p $port $host2
expect "password:"
send "$password\r"
expect eof
NodeJS
1
https://gitee.com/wj0342/mysqldiff.git
git@gitee.com:wj0342/mysqldiff.git
wj0342
mysqldiff
mysqldiff
master

搜索帮助